Pytest Modulenotfounderror
Even for as long as I've worked in Python, I still occasionally run into issues with my package structure. I'm trying to run $ pipenv run pytest from the root of the directory stru
Solution 1:
Remove the __init__.py
file from src
.
e.g.
src/
physics/
__init__.py
pathing.py
road/
tests/
__init__.py
test_traffic.py
__init__.py
traffic.py
__init__.py # Remove this one
main.py
Post a Comment for "Pytest Modulenotfounderror"