Good point, thanks.
So, in your approach, how do you import, let's say game_item.py from test_game_item.py? And does it then have to be run from a specific folder (omission-git, omission-git/omission/, or omission-git/omission/tests) or does it work from all the above?
import
game_item.py
test_game_item.py
omission-git
omission-git/omission/
omission-git/omission/tests
Within omission/tests/test_game_item.py, I would import that other module via...
omission/tests/test_game_item.py
import omission.game.game_item
I always run python -m omission or pytest omission from within omission-git.
python -m omission
pytest omission
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good point, thanks.
So, in your approach, how do you
import
, let's saygame_item.py
fromtest_game_item.py
?And does it then have to be run from a specific folder (
omission-git
,omission-git/omission/
, oromission-git/omission/tests
) or does it work from all the above?Within
omission/tests/test_game_item.py
, I would import that other module via...I always run
python -m omission
orpytest omission
from withinomission-git
.