SM
Size: a a a
SM
АП
MS
MS
D
V
MA
D
MA
MS
SM
YN
AC
DS
__init__.py файлы из папки тестов (https://docs.pytest.org/en/latest/goodpractices.html). Теперь, когда у меня в разных подпапках есть тесты с одинаковыми именами:ERROR collecting tests/car/test_get.py
import file mismatch:
imported module 'test_get' has this __file__ attribute:
/project/tests/engine/test_get.py
which is not the same as the test file we want to collect:
/project/tests/car/test_get.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
D
SM
__init__.py файлы из папки тестов (https://docs.pytest.org/en/latest/goodpractices.html). Теперь, когда у меня в разных подпапках есть тесты с одинаковыми именами:ERROR collecting tests/car/test_get.py
import file mismatch:
imported module 'test_get' has this __file__ attribute:
/project/tests/engine/test_get.py
which is not the same as the test file we want to collect:
/project/tests/car/test_get.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
__init__, если другого пути для себя не видишьSM
D
A🚀
YU