Skip to content

Commit 67e69a7

Browse files
authored
tests: harden test_xdist_verbose (#6700)
1 parent b09762d commit 67e69a7

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
@@ -1761,6 +1761,22 @@ def test_xdist_verbose(self, many_tests_files, testdir, monkeypatch):
17611761
r"\[gw\d\] \[\s*\d+%\] PASSED test_foobar.py::test_foobar\[1\]",
17621762
]
17631763
)
1764+
output.stdout.fnmatch_lines_random(
1765+
[
1766+
line.translate(TRANS_FNMATCH)
1767+
for line in [
1768+
"test_bar.py::test_bar[0] ",
1769+
"test_foo.py::test_foo[0] ",
1770+
"test_foobar.py::test_foobar[0] ",
1771+
"[gw?] [ 5%] PASSED test_*[?] ",
1772+
"[gw?] [ 10%] PASSED test_*[?] ",
1773+
"[gw?] [ 55%] PASSED test_*[?] ",
1774+
"[gw?] [ 60%] PASSED test_*[?] ",
1775+
"[gw?] [ 95%] PASSED test_*[?] ",
1776+
"[gw?] [100%] PASSED test_*[?] ",
1777+
]
1778+
]
1779+
)
17641780

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

0 commit comments

Comments
 (0)