Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_helpers: Include an empty session for HostRequestMock.
Tim Abbottdd5ae0af4431
diff --git a/zerver/lib/test_helpers.py b/zerver/lib/test_helpers.pyindex 8173e3b38f7..65e5d5763ff 100644--- a/zerver/lib/test_helpers.py+++ b/zerver/lib/test_helpers.py@@ -19,6 +19,7 @@ import ldapimport orjsonfrom django.conf import settingsfrom django.contrib.auth.models import AnonymousUser+from django.contrib.sessions.backends.base import SessionBasefrom django.db.migrations.state import StateAppsfrom django.http import HttpRequest, HttpResponse, HttpResponseRedirectfrom django.http.request import QueryDict@@ -397,6 +398,7 @@ class HostRequestMock(HttpRequest):self.user = user_profile or AnonymousUser()self._body = orjson.dumps(post_data)self.content_type = ""+ self.session = SessionBase()RequestNotes.set_notes(self,