mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
test_helpers: Expand HostRequestMock variables.
This commit is contained in:
@@ -279,6 +279,9 @@ class HostRequestMock(object):
|
|||||||
def __init__(self, host=settings.EXTERNAL_HOST):
|
def __init__(self, host=settings.EXTERNAL_HOST):
|
||||||
# type: (Text) -> None
|
# type: (Text) -> None
|
||||||
self.host = host
|
self.host = host
|
||||||
|
self.GET = {} # type: Dict[str, Any]
|
||||||
|
self.POST = {} # type: Dict[str, Any]
|
||||||
|
self.META = {'PATH_INFO': 'test'}
|
||||||
|
|
||||||
def get_host(self):
|
def get_host(self):
|
||||||
# type: () -> Text
|
# type: () -> Text
|
||||||
|
|||||||
Reference in New Issue
Block a user