From 53b4132a7bd936e1f839f78285026bf829dfb9f4 Mon Sep 17 00:00:00 2001 From: wnd-ft Date: Sat, 29 Feb 2020 23:08:00 +0900 Subject: [PATCH] Fix - call test_head_request_against_viewset method --- tests/test_viewsets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_viewsets.py b/tests/test_viewsets.py index eac36f095..3496263e4 100644 --- a/tests/test_viewsets.py +++ b/tests/test_viewsets.py @@ -94,7 +94,7 @@ urlpatterns = [ class InitializeViewSetsTestCase(TestCase): def test_initialize_view_set_with_actions(self): - request = factory.get('/', '', content_type='application/json') + request = factory.get('/', content_type='application/json') my_view = BasicViewSet.as_view(actions={ 'get': 'list', }) @@ -103,8 +103,8 @@ class InitializeViewSetsTestCase(TestCase): assert response.status_code == status.HTTP_200_OK assert response.data == {'ACTION': 'LIST'} - def testhead_request_against_viewset(self): - request = factory.head('/', '', content_type='application/json') + def test_head_request_against_viewset(self): + request = factory.head('/', content_type='application/json') my_view = BasicViewSet.as_view(actions={ 'get': 'list', })