Fixing xdist test to properly configure an ini file.
This commit is contained in:
parent
dda5e5ea32
commit
325319dc3b
|
@ -1188,10 +1188,17 @@ class TestProgress(object):
|
||||||
def test_xdist_normal(self, many_tests_files, testdir):
|
def test_xdist_normal(self, many_tests_files, testdir):
|
||||||
pytest.importorskip("xdist")
|
pytest.importorskip("xdist")
|
||||||
output = testdir.runpytest("-n2")
|
output = testdir.runpytest("-n2")
|
||||||
|
sys.stderr.write(output.stdout)
|
||||||
output.stdout.re_match_lines([r"\.{20} \s+ \[100%\]"])
|
output.stdout.re_match_lines([r"\.{20} \s+ \[100%\]"])
|
||||||
|
|
||||||
def test_xdist_normal_count(self, many_tests_files, testdir):
|
def test_xdist_normal_count(self, many_tests_files, testdir):
|
||||||
pytest.importorskip("xdist")
|
pytest.importorskip("xdist")
|
||||||
|
testdir.makeini(
|
||||||
|
"""
|
||||||
|
[pytest]
|
||||||
|
progress_display_mode = count
|
||||||
|
"""
|
||||||
|
)
|
||||||
output = testdir.runpytest("-n2")
|
output = testdir.runpytest("-n2")
|
||||||
output.stdout.re_match_lines([r"\.{20} \s+ \[ 20 / 20 \]"])
|
output.stdout.re_match_lines([r"\.{20} \s+ \[ 20 / 20 \]"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue