diff options
Diffstat (limited to 'tests/check_framework')
| -rw-r--r-- | tests/check_framework/test_urls.py | 2 | ||||
| -rw-r--r-- | tests/check_framework/urls/path_compatibility/contains_re_named_group.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_framework/test_urls.py b/tests/check_framework/test_urls.py index 217b5e7bad..f0c257bc77 100644 --- a/tests/check_framework/test_urls.py +++ b/tests/check_framework/test_urls.py @@ -143,7 +143,7 @@ class UpdatedToPathTests(SimpleTestCase): self.assertEqual(len(result), 1) warning = result[0] self.assertEqual(warning.id, '2_0.W001') - expected_msg = "Your URL pattern '(?P<named-group>\\d+)' has a route" + expected_msg = "Your URL pattern '(?P<named_group>\\d+)' has a route" self.assertIn(expected_msg, warning.msg) @override_settings(ROOT_URLCONF='check_framework.urls.path_compatibility.beginning_with_caret') diff --git a/tests/check_framework/urls/path_compatibility/contains_re_named_group.py b/tests/check_framework/urls/path_compatibility/contains_re_named_group.py index a99c79354e..bd849509f5 100644 --- a/tests/check_framework/urls/path_compatibility/contains_re_named_group.py +++ b/tests/check_framework/urls/path_compatibility/contains_re_named_group.py @@ -1,5 +1,5 @@ from django.urls import path urlpatterns = [ - path(r'(?P<named-group>\d+)', lambda x: x), + path(r'(?P<named_group>\d+)', lambda x: x), ] |
