mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Merge pull request #5560 from jdufresne/escape-seq
Fix invalid escape sequence deprecation warnings
This commit is contained in:
commit
e5cee43000
|
@ -313,9 +313,9 @@ class ExampleDetailView(APIView):
|
||||||
class TestSchemaGenerator(TestCase):
|
class TestSchemaGenerator(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.patterns = [
|
self.patterns = [
|
||||||
url('^example/?$', ExampleListView.as_view()),
|
url(r'^example/?$', ExampleListView.as_view()),
|
||||||
url('^example/(?P<pk>\d+)/?$', ExampleDetailView.as_view()),
|
url(r'^example/(?P<pk>\d+)/?$', ExampleDetailView.as_view()),
|
||||||
url('^example/(?P<pk>\d+)/sub/?$', ExampleDetailView.as_view()),
|
url(r'^example/(?P<pk>\d+)/sub/?$', ExampleDetailView.as_view()),
|
||||||
]
|
]
|
||||||
|
|
||||||
def test_schema_for_regular_views(self):
|
def test_schema_for_regular_views(self):
|
||||||
|
@ -365,9 +365,9 @@ class TestSchemaGenerator(TestCase):
|
||||||
class TestSchemaGeneratorNotAtRoot(TestCase):
|
class TestSchemaGeneratorNotAtRoot(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.patterns = [
|
self.patterns = [
|
||||||
url('^api/v1/example/?$', ExampleListView.as_view()),
|
url(r'^api/v1/example/?$', ExampleListView.as_view()),
|
||||||
url('^api/v1/example/(?P<pk>\d+)/?$', ExampleDetailView.as_view()),
|
url(r'^api/v1/example/(?P<pk>\d+)/?$', ExampleDetailView.as_view()),
|
||||||
url('^api/v1/example/(?P<pk>\d+)/sub/?$', ExampleDetailView.as_view()),
|
url(r'^api/v1/example/(?P<pk>\d+)/sub/?$', ExampleDetailView.as_view()),
|
||||||
]
|
]
|
||||||
|
|
||||||
def test_schema_for_regular_views(self):
|
def test_schema_for_regular_views(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user