Skip to content

Commit

Permalink
Remove output verification in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaveMyYard committed Dec 5, 2023
1 parent f4402ae commit 8ee297b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/test_krr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import json

import pytest
import yaml
from typer.testing import CliRunner

from robusta_krr.main import app, load_commands
Expand Down Expand Up @@ -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

0 comments on commit 8ee297b

Please sign in to comment.