From c6a2f121ca6327637ef13bdffcc8ea1b5962299c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 26 Aug 2020 16:21:04 -0700 Subject: [PATCH] test_openapi: Remove now-unnecessary regex hack. This hack became dead code in 4f0f734810da262044d9ec3ba6baacb73908468e, causing coverage to fail. --- zerver/tests/test_openapi.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/zerver/tests/test_openapi.py b/zerver/tests/test_openapi.py index 778387240f..26cc46d59b 100644 --- a/zerver/tests/test_openapi.py +++ b/zerver/tests/test_openapi.py @@ -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('[^/]+', '.*')