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 have a situation where I need to load huge db fixture which is created by a function. The fixture is needed in all api tests. So I made a...

db-configuration
enhancement

I'm trying out `pytest-django` coming from a traditional `manage.py test` workflow. After configuring, when I run `pytest` all my tests are discovered properly, but they all fail with the same...

I am getting the following error when I am setting a function as a `default` value for a foreign key. I have the decorator on many tests, but it doesn't...

needs-info

Hi, We are facing this issue when building a django project in docker env with `docker-compose build` command ``` ImportError: cannot import name 'Mapping' from 'collections' (/usr/local/lib/python3.10/collections/__init__.py) pytest-django found a...

This issue replaces some historical issues: #76, #342, #423, #461, #828, #838, #839 (probably a partial list). ### Background Django supports [multi databases](https://docs.djangoproject.com/en/3.2/topics/db/multi-db/). This means defining multiple entries in the...

enhancement

I have a pytest.ini and a test_something.py file in the same dir as my manage.py. If I run 'pytest' directly, it works. If I run the whole thing with docker-compose,...

… configured settings instances This is a first draft implementation for #1001 to have a starting point for a discussion. See here for how this would be applied: https://github.com/pragmaticindustries/open-machine-plattform/tree/feature/new-launcher-with-pytest-fixes Especially...

We use a setup where we do not use djangos "default" initialization but create our own settings via Djangos `settings.configure(xxx)`. Currently this is not supported via pytest-django but a very...

The newly released Channels 2.0 Django package "relies on the `asyncio` library and native Python async support". [They recommend](http://channels.readthedocs.io/en/latest/topics/testing.html) to use `py.test` tests with the `asyncio` plugin. Now, you can...