pytest-django
pytest-django copied to clipboard
A Django plugin for pytest.
I tried with markers in different places in conftest - nothing helps. If markers in individual test files that do use second db - everything work. If there is no...
Hi, I'm trying to test a new feature related to migrations, In order to do so I need a clear and unmigrated DB for each test in the tests class....
I stumbled upon this and had to read the source for finding out this helpful feature.
IIRC we agreed to make fixture names more explicit / namespaced, e.g. `django_mailoutbox`. This should be done for new fixtures at least.
Moved from https://github.com/pytest-dev/pytest-xdist/issues/690 OP post: > I am trying to speed up the test runtime by using pytest-xdist, previously I was using pytest, pytest-django to run the tests, > >...
How can I run the tests of third party apps? With the default Django test runner, it would be as trivial as issuing: `./manage.py ` But this seems not to...
Hey there, thanks for pytest-django! Appreciate all of the hard work, have used it quite a few times with no problems. We're running into a bit of a snag where...
This was introduced in #819. If I have data migrations in my project and two test cases, one `TestCase` and one `TransactionTestCase`, prioritizing the first flags over the order introduced...
On this line: https://github.com/pytest-dev/pytest-django/blob/cf6b229bce0c717bc590d8fd7cef281f3aa2c1fa/pytest_django/live_server_helper.py#L27 When using an sqlite in-memory database, our test gets to that line and raises `AttributeError: Can't set attribute` Looking at the [django source code for the...