clan_cli: flake_name -> flake_dir

This commit is contained in:
lassulus
2023-11-15 14:28:40 +01:00
parent 426be3dd37
commit 082d628497
35 changed files with 199 additions and 354 deletions

View File

@@ -7,16 +7,16 @@ def test_machine_subcommands(
test_flake: FlakeForTest, capsys: pytest.CaptureFixture
) -> None:
cli = Cli()
cli.run(["machines", "create", "machine1", test_flake.name])
cli.run(["--flake", str(test_flake.path), "machines", "create", "machine1"])
capsys.readouterr()
cli.run(["machines", "list", test_flake.name])
cli.run(["--flake", str(test_flake.path), "machines", "list"])
out = capsys.readouterr()
assert "machine1\n" == out.out
cli.run(["machines", "delete", "machine1", test_flake.name])
cli.run(["--flake", str(test_flake.path), "machines", "delete", "machine1"])
capsys.readouterr()
cli.run(["machines", "list", test_flake.name])
cli.run(["--flake", str(test_flake.path), "machines", "list"])
out = capsys.readouterr()
assert "" == out.out