split list machines into show machine command

This commit is contained in:
Jörg Thalheim
2024-05-31 11:50:12 +02:00
parent c496cf578c
commit 84f75de34c
7 changed files with 90 additions and 37 deletions

View File

@@ -21,6 +21,13 @@ def test_machine_subcommands(
assert "vm1" in out.out
assert "vm2" in out.out
capsys.readouterr()
cli.run(["machines", "show", "--flake", str(test_flake_with_core.path), "machine1"])
out = capsys.readouterr()
assert "machine1" in out.out
assert "Description" in out.out
print(out)
cli.run(
["machines", "delete", "--flake", str(test_flake_with_core.path), "machine1"]
)