mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
trello: Use client_head wrapper in tests.
This commit is contained in:
@@ -175,6 +175,14 @@ class ZulipTestCase(TestCase):
|
||||
self.set_http_host(kwargs)
|
||||
return django_client.options(url, encoded, **kwargs)
|
||||
|
||||
@instrument_url
|
||||
def client_head(self, url, info={}, **kwargs):
|
||||
# type: (Text, Dict[str, Any], **Any) -> HttpResponse
|
||||
encoded = urllib.parse.urlencode(info)
|
||||
django_client = self.client # see WRAPPER_COMMENT
|
||||
self.set_http_host(kwargs)
|
||||
return django_client.head(url, encoded, **kwargs)
|
||||
|
||||
@instrument_url
|
||||
def client_post(self, url, info={}, **kwargs):
|
||||
# type: (Text, Dict[str, Any], **Any) -> HttpResponse
|
||||
|
||||
Reference in New Issue
Block a user