pytest-django
pytest-django copied to clipboard
A Django plugin for pytest.
We are having a few projects that suffer from hanging connections to the DB, can be from external processes or threads that holds an connection to the database, and causes...
Because the `settings` fixture undoes its modifications once at fixture teardown, if `override_settings` is used after `settings` fixture setup, but before any `settings.VAL = 1` setattr statements, the `settings` fixture...
I know about the pytest-python path plugin, but I'd like much earlier pythonpaths to be setup by pytest-django, so that it can find my early hook (which applies patches before...
Using Python 3.4, pytest-django 2.8.0, pytest 2.7.0, django 1.7.6, & Postgresql 9.3.9 When running my unit tests I have an intermittent error returning from my one and only Doctest. All...
If I setup a django test runner for pytest and start pytest with ```python manage.py test```, ```DJANGO_SETTINGS_MODULE``` in configurations such as ```setup.cfg``` or ```pytest.ini``` does not work since ```DJANGO_SETTINGS_MODULE``` is...
TODO: - [ ] doc - [ ] use a command line option instead? I've thought about having a fixture also, but it would require to set "force_debug_cursor" on the...
I am writing some tests which need to disable Django's autocommit, as the code under test manages this itself. However, after the first test case, the database is flushed, and...
Ref: https://github.com/pytest-dev/pytest-django/issues/772
I am trying to run selenium tests with pytest-django on a docker environment but the live_server fixture seems to not work. Simple test don't work like: It refuses the connection...
I don't have an obvious simple test case ready, but I can try to cook one up later. The gist is that when I wanted to insert a new package...