diff --git a/enterprise_access/apps/subsidy_request/tests/test_utils.py b/enterprise_access/apps/subsidy_request/tests/test_utils.py index eb309f9b..c334054d 100644 --- a/enterprise_access/apps/subsidy_request/tests/test_utils.py +++ b/enterprise_access/apps/subsidy_request/tests/test_utils.py @@ -26,7 +26,7 @@ def test_get_user_from_request_session(self): # Create request with session request = HttpRequest() - middleware = SessionMiddleware() + middleware = SessionMiddleware(mock.Mock()) middleware.process_request(request) request.session['_auth_user_id'] = test_user.id request.session.save()