Invoke session middleware correctly.

Review Request #11977 — Created Jan. 22, 2022 and submitted — Latest diff uploaded

Information

Djblets
release-3.x

Reviewers

For a while, middleware was allowed to be invoked in the old way
(instantiate with no arguments and then call process_request). This is
going away, and we'll need to instantiate with a get_response callable
and go through the new-style chain. This change updates our tests which
manually invoke middleware to do that.

Ran unit tests.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Invoke session middleware correctly.
For a while, middleware was allowed to be invoked in the old way (instantiate with no arguments and then call `process_request`). This is going away, and we'll need to instantiate with a `get_response` callable and go through the new-style chain. This change updates our tests which manually invoke middleware to do that. Testing Done: Ran unit tests.
028a92de8959c069a76bdf38661a100e6f8d2043 David Trowbridge
djblets/auth/tests/test_util.py
djblets/privacy/tests/test_consent_config_page_form_mixin.py
djblets/webapi/tests/test_api_auth_backend.py
djblets/webapi/tests/test_basic_auth_backend.py
Loading...