Problem:
Some modules, including the current version of cookiecutter-invenio-module, have a pytest.ini config which always run all the tests, even when a specific test is asked (pytest tests/file.py::test).
Solution:
See the solution here:
The tested directories should be listed with the testpaths variable instead of addopts.
Problem: Some modules, including the current version of cookiecutter-invenio-module, have a pytest.ini config which always run all the tests, even when a specific test is asked (
pytest tests/file.py::test
).Solution: See the solution here: The tested directories should be listed with the
testpaths
variable instead ofaddopts
.