From 5451b02ec6aadf969a0e78a3df6412b9b4273590 Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Thu, 5 Mar 2020 13:16:42 +0100 Subject: [PATCH] fixed router tests --- tests/test_routers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_routers.py b/tests/test_routers.py index ff927ff33..0e45f88e7 100644 --- a/tests/test_routers.py +++ b/tests/test_routers.py @@ -271,7 +271,7 @@ class TestTrailingSlashIncluded(TestCase): self.urls = self.router.urls def test_urls_have_trailing_slash_by_default(self): - expected = ['^notes/$', '^notes/(?P[^/.]+)/$'] + expected = ['^notes/$', '^notes/(?P[^/]+)/$'] for idx in range(len(expected)): assert expected[idx] == get_regex_pattern(self.urls[idx]) @@ -286,7 +286,7 @@ class TestTrailingSlashRemoved(TestCase): self.urls = self.router.urls def test_urls_can_have_trailing_slash_removed(self): - expected = ['^notes$', '^notes/(?P[^/.]+)$'] + expected = ['^notes$', '^notes/(?P[^/]+)$'] for idx in range(len(expected)): assert expected[idx] == get_regex_pattern(self.urls[idx])