Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

profile_request: Specify self.POST in mock request.

Tim Abbotta35b9fd2d9c6
diff --git a/zilencer/management/commands/profile_request.py b/zilencer/management/commands/profile_request.py
index 60b92df8c59..bd10d3ca434 100644
--- a/zilencer/management/commands/profile_request.py
+++ b/zilencer/management/commands/profile_request.py
@@ -33,6 +33,7 @@ class MockRequest(HttpRequest):
"num_before": 1200,
"num_after": 200,
}
+ self.POST = self.REQUEST
self.GET: Dict[Any, Any] = {}
self.session = MockSession()