Complete answer can be found here;
But you can simply create _init_.py file under tests directory!
_
init
_.py
tests
Secondary fix is to add this to your pyproject.toml:
pyproject.toml
[tool.pytest.ini_options] pythonpath = ["."]