pytest-django icon indicating copy to clipboard operation
pytest-django copied to clipboard

A Django plugin for pytest.

Results 185 pytest-django issues
Sort by recently updated
recently updated
newest added
trafficstars

I'm not sure if this is a bug or if I'm just not understanding how django_db_setup is supposed to work: I'm attempting to load a .sql file into the test...

Please for some reason one of my test is failing on Travis CI but passes locally. This is the code for the test: ``` @pytest.mark.django_db(transaction=True) class TestCreateItem: def test_successful_item_creation(self, client,...

I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account. - "setup.py build"...

I've got some database tables that exist in a separate Postgres schema called `legacy`. When using pytest-django to set up a test database, I get this error when it tries...

The `live_server` fixture is session-scoped while the `transactional_db` fixture (which `live_server` implicitly enables) is function-scoped. As a consequence, `live_server` can handle requests during the whole duration of the test suite....

bug

Running `pytest-xdist` with concurrency 20, most of my tests access the database. That means that the first 20 tests set up the database for their individual thread, causing the "setup"...

Hi, together with @jnns we stumbled upon this issue: we have a dictionary in our ``settings_test.py`` where one key is just holding a boolean value. In one test we modify...

bug

Hey all, I have a large passing test suite that doesn't seem to get along with pytest-xdist. The status code responses from the Django Rest Framework test `APIClient` suddenly all...

When using pytest's `--junitxml` flag to produce a test report, the timing information includes the migrations for the first test run which requires migrations. In our environment, we often randomize...

Has anyone had success running tests that rely on caching with the xdist plugin? I created a fixture, similar to the database fixture, to add a cache key prefix: https://github.com/edx/course-discovery/blob/ad1dca5623b765c6d85d83dcf7e5f75c7b8e1181/conftest.py#L18-L40....

question