pytest-django
pytest-django copied to clipboard
A Django plugin for pytest.
Hello, Do you think that this is possible as described on https://github.com/HypothesisWorks/hypothesis/issues/733 and implement the [trio solution](https://github.com/python-trio/pytest-trio/blob/46f2ba7bf337d836e4b640a0d4ecf76411341366/pytest_trio/plugin.py#L340-L356)? I will be happy to try and tackle this if you think it's...
### What I did * Ran tests of a Django project using `tox -p` – so `TOX_PARALLEL_ENV` is set to `true`. * I set the path to the SQLite database...
I would like the `FAIL_INVALID_TEMPLATE_VARS` option to not fail tests for specified app templates. For example, if the issue is in a third party app template (inherited or otherwise) that...
We are trying to avoid creating databases for each `xdist` process since our migrations are taking a very long time (They have network calls. I know, I know). The `pytest-django`...
As part of my test scripts I'll usually run `django-admin check` and `django-admin makemigrations --check --dry-run` to assert nobody missed something. Am I missing a way to hook those administrative...
I am dealing with a fairly complicated mono-repo that defines multiple Django instances in subdirectories. Something like this: ``` . ├── src/ │ ├── django_instance1/ │ │ ├── app1/ │ ...
when i tried this command ``` pytest -s --import-mode=importlib ``` it works fine. but when i tried this ``` pytest -s --import-mode=importlib app/tests/test_filename.py ``` first time was a general fail...
Very similar to this https://github.com/pytest-dev/pytest-django/issues/824 Here is project example https://github.com/Headmaster11/celery_pytest When try to launch pytest with celery_worker fixture, got such error ``` self = name = None def _cursor(self, name=None):...
Could somebody point me to how I can set mysql back-end up? At the moment I have sqlite which simply reads from a file, I want something similar but with...
When running the test suite for [whitenoise](https://github.com/evansd/whitenoise) plenty of tests ends with the following error (using pytest-6.2.5, pytest-django-4.5.2): ``` [ 31s] _______ ERROR at setup of test_last_modified_not_set_when_mtime_is_zero ________ [ 31s]...