mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Remove test_helpers.DummySession
This commit is contained in:
@@ -189,9 +189,6 @@ class DummyHandler(object):
|
|||||||
# type: (Callable) -> None
|
# type: (Callable) -> None
|
||||||
allocate_handler_id(self)
|
allocate_handler_id(self)
|
||||||
|
|
||||||
class DummySession(object):
|
|
||||||
session_key = "0"
|
|
||||||
|
|
||||||
class POSTRequestMock(object):
|
class POSTRequestMock(object):
|
||||||
method = "POST"
|
method = "POST"
|
||||||
|
|
||||||
@@ -200,7 +197,6 @@ class POSTRequestMock(object):
|
|||||||
self.REQUEST = self.POST = post_data
|
self.REQUEST = self.POST = post_data
|
||||||
self.user = user_profile
|
self.user = user_profile
|
||||||
self._tornado_handler = DummyHandler()
|
self._tornado_handler = DummyHandler()
|
||||||
self.session = DummySession()
|
|
||||||
self._log_data = {} # type: Dict[str, Any]
|
self._log_data = {} # type: Dict[str, Any]
|
||||||
self.META = {'PATH_INFO': 'test'}
|
self.META = {'PATH_INFO': 'test'}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user