Fixing xdist test to properly configure an ini file.

This commit is contained in:
Jeffrey Rackauckas 2018-08-25 22:18:29 -07:00
parent dda5e5ea32
commit 325319dc3b
1 changed files with 7 additions and 0 deletions

View File

@ -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 \]"])