Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_subs: Use HostRequestMock for request object.
Tim Abbott1045737be646
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.pyindex cb7dde914d9..89f89b57ee5 100644--- a/zerver/tests/test_subs.py+++ b/zerver/tests/test_subs.py@@ -64,6 +64,7 @@ from zerver.lib.streams import ()from zerver.lib.test_classes import ZulipTestCasefrom zerver.lib.test_helpers import (+ HostRequestMock,cache_tries_captured,get_subscription,most_recent_message,@@ -3512,6 +3513,7 @@ class SubscriptionRestApiTest(ZulipTestCase):user_profile = self.example_user("hamlet")user_profile.full_name = "Hamlet"user_profile.save()+ request = HostRequestMock(user_profile=user_profile)def thunk1() -> HttpResponse:user_profile.full_name = "Should not be committed"