You should set PYTHONPATH
to your project root directory to allow python find src
module.
I.e. you can execute following command export PYTHONPATH=/home/me/my_project_dir
to set PYTHONPATH
in current shell.
Or just run pytest with PYTHONPATH=
pwd && pytest