mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
flake8 fix
This commit is contained in:
parent
60e48143c2
commit
27bcc39da3
|
@ -573,7 +573,8 @@ class IsAuthenticatedOrOptionsOnlyAllowedTests(TestCase):
|
||||||
self.request = factory.get('/1', format='json', HTTP_AUTHORIZATION=credentials)
|
self.request = factory.get('/1', format='json', HTTP_AUTHORIZATION=credentials)
|
||||||
response = options_view(self.request, pk=1)
|
response = options_view(self.request, pk=1)
|
||||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||||
|
|
||||||
|
|
||||||
class FakeUser:
|
class FakeUser:
|
||||||
def __init__(self, auth=False):
|
def __init__(self, auth=False):
|
||||||
self.is_authenticated = auth
|
self.is_authenticated = auth
|
||||||
|
|
Loading…
Reference in New Issue
Block a user