Their were two files named test_logs which, when running raw pytest results in this error:
import file mismatch:
imported module 'test_logs' has this __file__ attribute:
/path/code/titanoboa/tests/integration/fork/test_logs.py
which is not the same as the test file we want to collect:
/path/code/titanoboa/tests/unitary/test_logs.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
So we just renamed one of them.
How I did it
Added a skipif to the test failing on macos
changed the name of one of the test files
How to verify it
get on a macos and run: pytest tests/unitary/ and tests now pass
Run pytest tests/unitary/test_logs.py tests/integration/fork/test_logs_weth.py and tests will pass the issue they ran into before. On the master branch, if you run pytest tests/unitary/test_logs.py tests/integration/fork/test_logs.py they will fail.
What I did
test_logs
which, when running rawpytest
results in this error:So we just renamed one of them.
How I did it
How to verify it
pytest tests/unitary/
and tests now passpytest tests/unitary/test_logs.py tests/integration/fork/test_logs_weth.py
and tests will pass the issue they ran into before. On the master branch, if you runpytest tests/unitary/test_logs.py tests/integration/fork/test_logs.py
they will fail.Description for the changelog
Cute Animal Picture