mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
re_path
This commit is contained in:
parent
7b4139d046
commit
e431bfaa14
|
@ -97,7 +97,7 @@ class FormatSuffixTests(TestCase):
|
||||||
def test_format_suffix_django2_args(self):
|
def test_format_suffix_django2_args(self):
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('convtest/<int:pk>', dummy_view),
|
path('convtest/<int:pk>', dummy_view),
|
||||||
path('retest/<int:pk>', dummy_view),
|
re_path(r'^retest/(?P<pk>[0-9]+)$', dummy_view),
|
||||||
]
|
]
|
||||||
test_paths = [
|
test_paths = [
|
||||||
URLTestPath('/convtest/42', (), {'pk': 42}),
|
URLTestPath('/convtest/42', (), {'pk': 42}),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user