Mercurial > p > roundup > code
view test/conftest.py @ 7881:2184033114a0
test: fix tests python3 can't sort dict.
Was getting
TypeError: '<' not supported between instances of 'dict' and 'dict'
on some result.sort() where result was a dict on windows. Not sure
why it wasn't happening on Linux but I don't see any requirement to
sort the dicts to make the test pass. Possibly sort() was a copy/paste
from an earlier test where a list or something was returned.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 18 Apr 2024 19:00:18 -0400 |
| parents | 3071db43bfb6 |
| children | 619b723dd2bb |
line wrap: on
line source
# simple way to see if there are order dependencies in tests # can use if pytest-random-order --random-order mode isn't # usable (e.g. python2). #def pytest_collection_modifyitems(items): # items.reverse() # Add a marker for pg_schema tests. # They duplicate the postgresql tests exactly but uses a named # schema rather than the default 'public' schema. def pytest_configure(config): config.addinivalue_line( "markers", "pg_schema: tests using schema for postgres" )
