Skip to content

Commit

Permalink
Combined test_report.py into test_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 30, 2024
1 parent ff523e3 commit 6f0e666
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 32 deletions.
11 changes: 6 additions & 5 deletions Tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
import pytest


@pytest.mark.parametrize("report", (False, True))
def test_main(report) -> None:
args = [sys.executable, "-m", "PIL"]
if report:
args.append("--report")
@pytest.mark.parametrize(
"args, report",
((["PIL.report"], True), (["PIL", "--report"], True), (["PIL"], False)),
)
def test_main(args, report) -> None:
args = [sys.executable, "-m"] + args
out = subprocess.check_output(args).decode("utf-8")
lines = out.splitlines()
assert lines[0] == "-" * 68
Expand Down
27 changes: 0 additions & 27 deletions Tests/test_report.py

This file was deleted.

0 comments on commit 6f0e666

Please sign in to comment.