Skip to content

Commit 1ac1540

Browse files
radarherenulano
authored andcommitted
Combined test_report.py into test_main.py
1 parent 7e71621 commit 1ac1540

2 files changed

Lines changed: 6 additions & 32 deletions

File tree

Tests/test_main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
import pytest
88

99

10-
@pytest.mark.parametrize("report", (False, True))
11-
def test_main(report) -> None:
12-
args = [sys.executable, "-m", "PIL"]
13-
if report:
14-
args.append("--report")
10+
@pytest.mark.parametrize(
11+
"args, report",
12+
((["PIL.report"], True), (["PIL", "--report"], True), (["PIL"], False)),
13+
)
14+
def test_main(args, report) -> None:
15+
args = [sys.executable, "-m"] + args
1516
out = subprocess.check_output(args).decode("utf-8")
1617
lines = out.splitlines()
1718
assert lines[0] == "-" * 68

Tests/test_report.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)