import file mismatch in pytest
In my case, it was missing __init__.py file in tests directory.
In my case, it was missing __init__.py file in tests directory.
Instead of using the pytest-cov plugin, use coverage to run pytest: coverage run -m pytest …. That way, coverage will be started before pytest.