Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwojcik committed Nov 10, 2024
1 parent b90c334 commit 072fd2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testproject/testapp/tests/test_urls/test_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def test_urls_have_not_changed(settings):
# Function to normalize URL patterns by removing trailing \Z
# otherwise fails in CI
def normalize_pattern(pattern):
return re.sub(r"\\Z$", "", pattern)
pattern = re.sub(r"\(\?P<format>\\\.\[a-z0-9\]\+\[/\]\)\?", "", pattern)
return pattern

def get_all_urls(patterns, prefix=""):
urls = []
Expand Down

0 comments on commit 072fd2a

Please sign in to comment.