Skip to content

Commit d784e42

Browse files
turfaarpkilby
authored andcommitted
Fix basename deprecation warnings in tests (#6529)
1 parent b25d245 commit d784e42

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_renderers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def list_action(self, request):
636636
raise NotImplementedError
637637

638638
router = SimpleRouter()
639-
router.register('examples', ExampleViewSet, base_name='example')
639+
router.register('examples', ExampleViewSet, basename='example')
640640
urlpatterns = [url(r'^api/', include(router.urls))]
641641

642642
def setUp(self):

tests/test_routers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def action3_delete(self, request, pk, *args, **kwargs):
121121

122122
class TestSimpleRouter(URLPatternsTestCase, TestCase):
123123
router = SimpleRouter()
124-
router.register('basics', BasicViewSet, base_name='basic')
124+
router.register('basics', BasicViewSet, basename='basic')
125125

126126
urlpatterns = [
127127
url(r'^api/', include(router.urls)),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy