mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-26 03:53:42 +03:00
Fix - run test_head_request_against_viewset method (#7219)
This commit is contained in:
parent
73f7bf4941
commit
4a98533746
|
@ -113,7 +113,7 @@ class InitializeViewSetsTestCase(TestCase):
|
||||||
assert response.status_code == status.HTTP_200_OK
|
assert response.status_code == status.HTTP_200_OK
|
||||||
assert response.data == {'ACTION': 'LIST'}
|
assert response.data == {'ACTION': 'LIST'}
|
||||||
|
|
||||||
def testhead_request_against_viewset(self):
|
def test_head_request_against_viewset(self):
|
||||||
request = factory.head('/', '', content_type='application/json')
|
request = factory.head('/', '', content_type='application/json')
|
||||||
my_view = BasicViewSet.as_view(actions={
|
my_view = BasicViewSet.as_view(actions={
|
||||||
'get': 'list',
|
'get': 'list',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user