3👍
It doesn’t look like there’s an out-of-the-box way to do this, so I added a PR to django-pytest to support this.
Add the following to settings.py
:
TEST_RUNNER = 'pytest_django.runner.PyTestRunner'
And then you can run
manage.py test
👤Joe
1👍
You can use custom TEST_RUNNER but you need add it to your code.
Check the FAQ of pytest-django: https://pytest-django.readthedocs.io/en/latest/faq.html#how-can-i-use-manage-py-test-with-pytest-django
- [Django]-How painful is a django project deployment to a live (staging) site?
- [Django]-Django strange SlugField validation, error not raised before clean(), uncleaned data returned
- [Django]-Celery worker concurrency
Source:stackexchange.com