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:
Jack Zhang
2017-08-03 17:11:50 -07:00
committed by Tim Abbott
parent f0de6bd461
commit b82bdc82bf
3 changed files with 4 additions and 1 deletions

View File

@@ -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