mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
context_processors.py: Add flag for whether page is help center.
This is needed once the header markup is deduplicated.
This commit is contained in:
@@ -271,6 +271,7 @@ class POSTRequestMock(object):
|
||||
self._tornado_handler = DummyHandler()
|
||||
self._log_data = {} # type: Dict[str, Any]
|
||||
self.META = {'PATH_INFO': 'test'}
|
||||
self.path = ''
|
||||
|
||||
class HostRequestMock(object):
|
||||
"""A mock request object where get_host() works. Useful for testing
|
||||
@@ -282,6 +283,7 @@ class HostRequestMock(object):
|
||||
self.GET = {} # type: Dict[str, Any]
|
||||
self.POST = {} # type: Dict[str, Any]
|
||||
self.META = {'PATH_INFO': 'test'}
|
||||
self.path = ''
|
||||
|
||||
def get_host(self):
|
||||
# type: () -> Text
|
||||
|
||||
Reference in New Issue
Block a user