Skip to content

Commit cd1e62b

Browse files
committed
doc: known issues with possible dependent tests
When reversing the testing order, two blocks of tests fail. Document these. I spent time trying to fix them, but got nowhere. Obviously I am missing something. But this doc gives future me or somebody else a starting point.
1 parent 36d0f61 commit cd1e62b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/conftest.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
# can use if pytest-random-order --random-order mode isn't
33
# usable (e.g. python2).
44

5+
6+
# known issues:
7+
# python3 -m pytest -k Whoosh test/test_indexer.py fails starting with
8+
# first reversed (so last) test in module
9+
#
10+
# python3 -m pytest test/test_cgi.py
11+
# fails: FormTestCase::testCreatePermission
12+
# FormTestCase::testClassPermission
13+
# FormTestCase::testCheckAndPropertyPermission
14+
#
15+
# this failure results in a failure in test_action again with
16+
# bad permission application. Something run prior to these
17+
# tests is breaking the permission checks.
18+
519
#def pytest_collection_modifyitems(items):
620
# items.reverse()
721

0 commit comments

Comments
 (0)