I had an issue running my tests because modules were not loading. The issue at heart was that PYTHONPATH wasn’t set. I found out pipenv can read .env files. So this way it’s possible to add the current directory to it.
echo "PYTHONPATH=${PWD}" >> .env