From 8ee297b76d832d65150c638ea294b7797e8ba267 Mon Sep 17 00:00:00 2001 From: LeaveMyYard Date: Tue, 5 Dec 2023 10:37:06 +0200 Subject: Remove output verification in tests --- tests/test_krr.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tests/test_krr.py') 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 -- cgit v1.2.3