mirror of https://github.com/zulip/zulip.git
Annotate client_post() and client_get() in test_helpers.
This commit is contained in:
parent
8b9e9a386a
commit
30129f609b
|
@ -329,11 +329,13 @@ class ZulipTestCase(TestCase):
|
|||
|
||||
@instrument_url
|
||||
def client_post(self, url, info={}, **kwargs):
|
||||
# type: (text_type, Dict[str, Any], **Any) -> HttpResponse
|
||||
django_client = self.client # see WRAPPER_COMMENT
|
||||
return django_client.post(url, info, **kwargs)
|
||||
|
||||
@instrument_url
|
||||
def client_get(self, url, info={}, **kwargs):
|
||||
# type: (text_type, Dict[str, Any], **Any) -> HttpResponse
|
||||
django_client = self.client # see WRAPPER_COMMENT
|
||||
return django_client.get(url, info, **kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue