mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 18:09:59 +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)
|
||||
response = options_view(self.request, pk=1)
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
|
||||
|
||||
|
||||
class FakeUser:
|
||||
def __init__(self, auth=False):
|
||||
self.is_authenticated = auth
|
||||
|
|
Loading…
Reference in New Issue
Block a user