mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
test_openapi: Remove now-unnecessary regex hack.
This hack became dead code in
4f0f734810, causing coverage to fail.
This commit is contained in:
parent
d5b2381cfc
commit
c6a2f121ca
@ -307,15 +307,6 @@ class OpenAPIArgumentsTest(ZulipTestCase):
|
||||
3. '/realm/domains' <-> r'/realm\\/domains$'
|
||||
"""
|
||||
|
||||
# TODO: Probably we should be able to address the below
|
||||
# through alternative solutions (e.g. reordering urls.py
|
||||
# entries or similar url organization, but for now these let
|
||||
# us test more endpoints and so are worth doing).
|
||||
me_pattern = '/(?!me/)'
|
||||
if me_pattern in regex_pattern:
|
||||
# Remove the exclude-me pattern if present.
|
||||
regex_pattern = regex_pattern.replace(me_pattern, "/")
|
||||
|
||||
# Handle the presence-email code which has a non-slashes syntax.
|
||||
regex_pattern = regex_pattern.replace('[^/]*', '.*').replace('[^/]+', '.*')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user