Skip to content

Commit eec0fb3

Browse files
committed
tests: harden test_xdist_verbose
1 parent a8fc056 commit eec0fb3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

testing/test_terminal.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,22 @@ def test_xdist_verbose(self, many_tests_files, testdir, monkeypatch):
17021702
r"\[gw\d\] \[\s*\d+%\] PASSED test_foobar.py::test_foobar\[1\]",
17031703
]
17041704
)
1705+
output.stdout.fnmatch_lines_random(
1706+
[
1707+
line.translate(TRANS_FNMATCH)
1708+
for line in [
1709+
"test_bar.py::test_bar[0] ",
1710+
"test_foo.py::test_foo[0] ",
1711+
"test_foobar.py::test_foobar[0] ",
1712+
"[gw?] [ 5%] PASSED test_*[?] ",
1713+
"[gw?] [ 10%] PASSED test_*[?] ",
1714+
"[gw?] [ 55%] PASSED test_*[?] ",
1715+
"[gw?] [ 60%] PASSED test_*[?] ",
1716+
"[gw?] [ 95%] PASSED test_*[?] ",
1717+
"[gw?] [100%] PASSED test_*[?] ",
1718+
]
1719+
]
1720+
)
17051721

17061722
def test_capture_no(self, many_tests_files, testdir):
17071723
output = testdir.runpytest("-s")

0 commit comments

Comments
 (0)