mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fix deprecation warnings in tests (#6076)
* Fix deprecated arguments in schema tests * Update optional reqs, fixing markdown deprecation
This commit is contained in:
parent
a0277919f0
commit
33f8910b26
|
@ -1,6 +1,6 @@
|
|||
# Optional packages which may be used with REST framework.
|
||||
psycopg2-binary==2.7.4
|
||||
markdown==2.6.4
|
||||
psycopg2-binary==2.7.5
|
||||
markdown==2.6.11
|
||||
django-guardian==1.4.9
|
||||
django-filter==1.1.0
|
||||
coreapi==2.3.1
|
||||
|
|
|
@ -754,7 +754,7 @@ class TestAutoSchema(TestCase):
|
|||
pass
|
||||
|
||||
router = SimpleRouter()
|
||||
router.register(r'detail', CustomViewSet, base_name='detail')
|
||||
router.register(r'detail', CustomViewSet, basename='detail')
|
||||
|
||||
generator = SchemaGenerator()
|
||||
view = generator.create_view(router.urls[0].callback, 'GET')
|
||||
|
@ -772,7 +772,7 @@ class TestAutoSchema(TestCase):
|
|||
pass
|
||||
|
||||
router = SimpleRouter()
|
||||
router.register(r'detail', CustomViewSet, base_name='detail')
|
||||
router.register(r'detail', CustomViewSet, basename='detail')
|
||||
|
||||
generator = SchemaGenerator()
|
||||
view = generator.create_view(router.urls[0].callback, 'GET')
|
||||
|
|
Loading…
Reference in New Issue
Block a user