Skip to content

Commit

Permalink
Merge branch 'topic/minimal-md' of https://github.com/bernt-matthias/…
Browse files Browse the repository at this point in the history
…planemo into topic/minimal-md
  • Loading branch information
bernt-matthias committed Jul 1, 2024
2 parents 4fb67bd + 1f7a366 commit 59e5ae5
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/test_cmd_test_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ def test_allure(self):
def test_markdown(self):
with self._isolate() as f:
json_path = os.path.join(TEST_DATA_DIR, "issue381.json")
results_path = os.path.join(f, "minimal_markdown_results")
self._check_exit_code(["test_reports", "--test_output_minimal_markdown", results_path, json_path], exit_code=0)
results_path = os.path.join(f, "markdown_results")
self._check_exit_code(["test_reports", "--test_output_markdown", results_path, json_path], exit_code=0)
assert os.path.exists(results_path)
assert os.path.isdir(results_path)
assert len(os.listdir(results_path))

# Run minimal version
minimal_results_path = os.path.join(f, "minimal_markdown_results")
self._check_exit_code(["test_reports", "--test_output_minimal_markdown", minimal_results_path, json_path], exit_code=0)
self._check_exit_code(["test_reports", "--test_output_markdown_minimal", minimal_results_path, json_path], exit_code=0)
assert os.path.exists(minimal_results_path)
assert os.path.isdir(minimal_results_path)
assert len(os.listdir(minimal_results_path))

assert os.path.getsize(minimal_markdown_results) < os.path.getsize(markdown_results)
# Make sure minimal markdown is compacted
assert os.path.getsize(minimal_results_path) < os.path.getsize(results_path)

0 comments on commit 59e5ae5

Please sign in to comment.