In a shared root, I have a src and a tests folder. When from that root I run
This is my setup.py https://gist.github.com/rohitsodhia/7496...d2cc90bc49
Updated my setup.py to set
packges=find_packages(where="src/*"),
It seems to now pick up all the files directly under src, but not any of the directories, like src/auth
pipenv run pytest .
, I get the error that my auth module can't be found for this test:from auth.models.user import User class TestUser: def test_valid_pass(): assert User.validate_pass("abcdefgh")Someone suggested I create a setup.py, which I did, but when I do, I have to turn my import into from
src.auth.models.user import User
, but then all my modules require being redone to src.whatever. I can't figure out how to properly path my tests.This is my setup.py https://gist.github.com/rohitsodhia/7496...d2cc90bc49
Updated my setup.py to set
packges=find_packages(where="src/*"),
It seems to now pick up all the files directly under src, but not any of the directories, like src/auth