mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
coverage: Add coverage for OPTIONS HTTP method.
This commit is contained in:
@@ -165,6 +165,13 @@ class ZulipTestCase(TestCase):
|
||||
django_client = self.client # see WRAPPER_COMMENT
|
||||
return django_client.delete(url, encoded, **kwargs)
|
||||
|
||||
@instrument_url
|
||||
def client_options(self, url, info={}, **kwargs):
|
||||
# type: (Text, Dict[str, Any], **Any) -> HttpResponse
|
||||
encoded = urllib.parse.urlencode(info)
|
||||
django_client = self.client # see WRAPPER_COMMENT
|
||||
return django_client.options(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