3 ms·
It is actually discouraged by pytest-django[0] to run it using Django's test command. Just run `pytest` itself. [0]: https://pytest-django.readthedocs.io/en/la
by gegenschall 9y ago
It is actually discouraged by pytest-django[0] to run it using Django's test command. Just run `pytest` itself.
[0]: https://pytest-django.readthedocs.io/en/latest/#why-would-i-use-this-instead-of-django-s-manage-py-test-command https://pytest-django.readthedocs.io/en/latest/#why-would-i-...
- theptip 9y agoYeah, see part one of my comment -- I've found that PyCharm is pretty bad at selecting `pytest` as the test runner. It works for test functions, but not for files/directories. Perhaps I'm missing something obvious, but PyCharm just uses `./manage.py test` even when I've selected Py.test as the project test runner.