Dynamically extending the python path at runtime is bad for developer experience, as this is not understood by the text editor and therefore jump to definition etc. does not work. -> Better to remove the dynamic inclusion and force developers to specify the import correctly.
21 lines
359 B
Python
21 lines
359 B
Python
import pytest
|
|
from fixtures_flakes import FlakeForTest
|
|
from helpers.cli import Cli
|
|
|
|
|
|
@pytest.mark.impure
|
|
def test_backups(
|
|
test_flake_with_core: FlakeForTest,
|
|
) -> None:
|
|
cli = Cli()
|
|
|
|
cli.run(
|
|
[
|
|
"backups",
|
|
"list",
|
|
"--flake",
|
|
str(test_flake_with_core.path),
|
|
"vm1",
|
|
]
|
|
)
|