Notes

If you're running pytest and you have your own modules, sometimes it's necessary to run pytest as a python module.

python -m pytest

This automatically imports the current directory into your PYTHONPATH.

Just using pytest by itself can cause issues even with python_paths = ./ in your pytest.ini.