Mercurial > p > roundup > code
comparison test/conftest.py @ 8266:43dc610bbd24
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 09 Jan 2025 09:32:10 -0500 |
| parents | 619b723dd2bb |
| children |
comparison
equal
deleted
inserted
replaced
| 8265:35beff316883 | 8266:43dc610bbd24 |
|---|---|
| 1 # simple way to see if there are order dependencies in tests | 1 # simple way to see if there are order dependencies in tests |
| 2 # can use if pytest-random-order --random-order mode isn't | 2 # can use if pytest-random-order --random-order mode isn't |
| 3 # usable (e.g. python2). | 3 # usable (e.g. python2). |
| 4 | |
| 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. | |
| 4 | 18 |
| 5 #def pytest_collection_modifyitems(items): | 19 #def pytest_collection_modifyitems(items): |
| 6 # items.reverse() | 20 # items.reverse() |
| 7 | 21 |
| 8 # Add a marker for pg_schema tests. | 22 # Add a marker for pg_schema tests. |
