summaryrefslogtreecommitdiff
path: root/tests/test_krr.py
diff options
context:
space:
mode:
authorLeaveMyYard <zhukovpavel2001@gmail.com>2023-12-05 10:37:06 +0200
committerLeaveMyYard <zhukovpavel2001@gmail.com>2023-12-05 10:37:06 +0200
commit8ee297b76d832d65150c638ea294b7797e8ba267 (patch)
treeeeab8c3c79f1945da719e4a372a5200889ad94e5 /tests/test_krr.py
parentf4402ae76bdab12649d80726195449bcb8d92f7e (diff)
Remove output verification in tests
Diffstat (limited to 'tests/test_krr.py')
-rw-r--r--tests/test_krr.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_krr.py b/tests/test_krr.py
index 2a2fb94..fe44176 100644
--- a/tests/test_krr.py
+++ b/tests/test_krr.py
@@ -1,7 +1,4 @@
-import json
-
import pytest
-import yaml
from typer.testing import CliRunner
from robusta_krr.main import app, load_commands
@@ -37,14 +34,3 @@ def test_output_formats(format: str, output: str):
assert result.exit_code == 0, result.exc_info
except AssertionError as e:
raise e from result.exception
-
- try:
- if format == "json":
- json_output = json.loads(result.stdout)
- assert json_output, result.stdout
- assert len(json_output["scans"]) > 0, result.stdout
-
- if format == "yaml":
- assert yaml.safe_load(result.stdout), result.stdout
- except Exception as e:
- raise Exception(result.stdout) from e