Skip to content

Commit

Permalink
Add -v for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbean-bremen committed Feb 27, 2024
1 parent 1bb2031 commit fa65dc1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_xdist_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


def test_xdist_ordering(tmpdir):
print(f"{tmpdir=}")
testname = str(tmpdir.join("first_test.py"))
with open(testname, "w") as fi:
fi.write(
Expand Down Expand Up @@ -59,11 +60,11 @@ def test_first_string():
)
)
# With `loadfile`, the tests should pass
args = ["-n3", "--dist=loadfile", str(tmpdir)]
args = ["-n3", "-v", "--dist=loadfile", str(tmpdir)]
ret = pytest.main(args, [pytest_order])
assert ret == 0

# Without `loadfile`, the tests should fail
args = ["-n3", str(tmpdir)]
args = ["-n3", "-v", str(tmpdir)]
ret = pytest.main(args, [pytest_order])
assert ret == 1

0 comments on commit fa65dc1

Please sign in to comment.