resolve comments

This commit is contained in:
pedrooot committed 2024-06-03 16:04:32 +02:00
1 parent ddc68e78ee
commit 77f58cbf68
1 file changed
+7 -1
+7 -1
View File
@@ -1,3 +1,5 @@
import json
from typer.testing import CliRunner
from cli.cli import app
@@ -58,4 +60,8 @@ class TestCLI:
result = runner.invoke(app, ["aws", "list-checks-json"])
assert result.exit_code == 0
assert "aws" in result.output
assert result.output.startswith("{") and result.output.endswith("}\n")
# validate the json output
try:
json.loads(result.output)
except ValueError:
assert False