Fix deprecation warnings in tests (#6076)

* Fix deprecated arguments in schema tests

* Update optional reqs, fixing markdown deprecation
This commit is contained in:
Ryan P Kilby 2018-07-09 23:56:52 -04:00 committed by GitHub
parent a0277919f0
commit 33f8910b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Optional packages which may be used with REST framework. # Optional packages which may be used with REST framework.
psycopg2-binary==2.7.4 psycopg2-binary==2.7.5
markdown==2.6.4 markdown==2.6.11
django-guardian==1.4.9 django-guardian==1.4.9
django-filter==1.1.0 django-filter==1.1.0
coreapi==2.3.1 coreapi==2.3.1

View File

@ -754,7 +754,7 @@ class TestAutoSchema(TestCase):
pass pass
router = SimpleRouter() router = SimpleRouter()
router.register(r'detail', CustomViewSet, base_name='detail') router.register(r'detail', CustomViewSet, basename='detail')
generator = SchemaGenerator() generator = SchemaGenerator()
view = generator.create_view(router.urls[0].callback, 'GET') view = generator.create_view(router.urls[0].callback, 'GET')
@ -772,7 +772,7 @@ class TestAutoSchema(TestCase):
pass pass
router = SimpleRouter() router = SimpleRouter()
router.register(r'detail', CustomViewSet, base_name='detail') router.register(r'detail', CustomViewSet, basename='detail')
generator = SchemaGenerator() generator = SchemaGenerator()
view = generator.create_view(router.urls[0].callback, 'GET') view = generator.create_view(router.urls[0].callback, 'GET')