Skip to content

tests: Add a dummy parameter for middlewares

James Valleroy requested to merge jvalleroy/freedombox:django4-middleware into master

From the Django 4.0 release notes: The get_response argument for django.utils.deprecation.MiddlewareMixin.__init__() is required and doesn’t accept None.

It appears that any non-None value can be used here, so I pass in True when initializing middlewares for tests. I don't know if this was the intended value, but it does fix the tests.

Signed-off-by: James Valleroy jvalleroy@mailbox.org

Merge request reports

Loading