API Reference#
pytest plugin#
Clients:
- dmr_pytest.dmr_client(request: FixtureRequest) DMRClient[source]#
Customized version of
django.test.Client.
- dmr_pytest.dmr_async_client(request: FixtureRequest) DMRAsyncClient[source]#
Customized version of
django.test.AsyncClient.
Request factories:
- dmr_pytest.dmr_rf() DMRRequestFactory[source]#
Customized version of
django.test.RequestFactory.
- dmr_pytest.dmr_async_rf() DMRAsyncRequestFactory[source]#
Customized version of
django.test.AsyncRequestFactory.
Settings:
- dmr_pytest.dmr_clean_settings() Iterator[None][source]#
Cleans settings caches before and after the test.
This fixture shadows the default one from pytest-django: