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

This moves activation of `LiveServer.thread` to a method. My primary motivation here is to delay thread activation so I can change the parameters of the thread in an overriden `live_server`...

not a big deal, but anyways

Hi, I have created some unit testing functions with pytest-django for my application models and successfully ran them on my local machine. However, when integrated them into Jenkinsfile as a...

pytest-django uses a function internally for checking if a test is a Django test case class, named `is_django_unittest`. This class is used to determine if database setup is needed or...

Hi, I'm working on a app with default data migrations (some models are populated with the `RunPython` migration method, ie. default users, related models for select...). I'm working on a...

In pytest-django there is a builtin fixture [live_server](https://pytest-django.readthedocs.io/en/latest/helpers.html#live-server) though it seems like this server (that is actually based on [LiveServerTestCase](https://docs.djangoproject.com/en/4.0/topics/testing/tools/#django.test.LiveServerTestCase)) can't handle web-sockets or at least won't interact with my...

Is there any way to persist data inside a (postgres) database after the tests run. I've run through https://pytest-django.readthedocs.io/en/latest/database.html several times and none of the solutions provided seem to help....

Basing on my usage and on StackOverflow questions, the world needs ``--liveserver-verbose`` command line argument, which this branch implements. Default live server is quiet. Django guys made it quiet. And,...

In my development this is a recurring pattern: I run Selenium tests just to get a simple "500 Internal server error" page and no output from the standard live_server fixture....