mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
Fix - call test_head_request_against_viewset method
This commit is contained in:
parent
2a5c2f3f70
commit
53b4132a7b
|
@ -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',
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user