Add coophost and coopaas experimental commands
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy
2020-04-12 15:41:30 +02:00
parent cd3bd67783
commit a178d0ed7c
10 changed files with 214 additions and 41 deletions

View File

@ -1,6 +1,6 @@
from subprocess import STDOUT
from autonomic.utils import is_proc, qlist, run, yaml_dump, yaml_load
from autonomic.utils import is_proc, run, yaml_dump, yaml_load
def test_run_kwargs():
@ -18,20 +18,6 @@ def test_run_cwd(tmp_path):
assert "testfile.txt" in output
def test_make_qlist():
output = qlist("foo", "bar", ["bang"])
expected = {
"type": "list",
"name": "foo",
"message": "bar",
"choices": ["bang"],
}
for key, val in expected.items():
assert expected[key] == output[0][key]
def test_yaml_load(tmp_path):
directory = tmp_path / "test"
directory.mkdir()