Hacker News new | ask | show | jobs
by gegenschall 3239 days 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-...

1 comments

Yeah, 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.