mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-03-27 05:14:25 +03:00
Fix failing test for router with no trailing slash
This commit is contained in:
parent
005f475c6a
commit
1c935cd3d2
|
@ -146,7 +146,7 @@ class TestTrailingSlashRemoved(TestCase):
|
||||||
self.urls = self.router.urls
|
self.urls = self.router.urls
|
||||||
|
|
||||||
def test_urls_can_have_trailing_slash_removed(self):
|
def test_urls_can_have_trailing_slash_removed(self):
|
||||||
expected = ['^notes$', '^notes/(?P<pk>[^/]+)$']
|
expected = ['^notes$', '^notes/(?P<pk>[^/.]+)$']
|
||||||
for idx in range(len(expected)):
|
for idx in range(len(expected)):
|
||||||
self.assertEqual(expected[idx], self.urls[idx].regex.pattern)
|
self.assertEqual(expected[idx], self.urls[idx].regex.pattern)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user