Add tests for interactions between boxed, dist and collect-only.

Re-enable parsing of the boxed option with collect-only
This commit is contained in:
verdesmarald
2017-09-07 16:05:25 +10:00
committed by James Bungard
parent c83f73e19c
commit 7674f6b186
3 changed files with 45 additions and 9 deletions

View File

@@ -262,6 +262,16 @@ class TestDistribution:
child.close()
# assert ret == 2
def test_dist_with_collectonly(self, testdir):
p1 = testdir.makepyfile("""
def test_ok():
pass
""")
result = testdir.runpytest(p1, "-n1", "--collect-only")
assert result.ret == 0
result.stdout.fnmatch_lines([
"*collected 1 item*",
])
class TestDistEach:
def test_simple(self, testdir):