Closed david-caro closed 6 years ago
Caused by pytest-metadata apparently.
I have a similar error
(venv) lauriano@lauriano:~/lauria-no/adriano$ docker-compose exec web pytest -pdb Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/_pytest/config/init.py", line 703, in import_plugin import(importspec) ModuleNotFoundError: No module named 'db'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/pytest", line 8, in
@LaurianoElmiroDuarte wrong issue, you forgot a - before --pdb making it it the ``` -p db
pip list
of the virtual environment you are usingWith the latest pytest release (3.3.0) when trying to run the tests I get the error:
If I just downgrade to
3.2.5
everything works:The pip list:
Looking how to get a minimal example.