import file mismatch:
imported module 'test' has this __file__ attribute:
/tests/integration/test_mount_disk_die/test.py
which is not the same as the test file we want to collect:
/tests/integration/test_query_api/test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
首先这是一个pytest问题:
https://github.com/pytest-dev/pytest/discussions/8978
解决方法:
In my case adding __init__.py to my test folder solved the issue for me, deleting __pycache__ was failing in the venv folder