mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-12-03 16:24:01 +03:00
Fix style issues in test_openapi.py (flake8 E303)
This commit is contained in:
parent
53b0adb6ed
commit
ea2564c418
|
|
@ -1280,7 +1280,6 @@ class TestGenerator(TestCase):
|
|||
request = create_request('/')
|
||||
schema = generator.get_schema(request=request)
|
||||
|
||||
|
||||
assert 'components' in schema
|
||||
assert 'schemas' in schema['components']
|
||||
assert 'ExampleModel' in schema['components']['schemas']
|
||||
|
|
@ -1294,7 +1293,6 @@ class TestGenerator(TestCase):
|
|||
request = create_request('/')
|
||||
schema = generator.get_schema(request=request)
|
||||
|
||||
|
||||
route = schema['paths']['/api-token-auth/']['post']
|
||||
body_schema = route['requestBody']['content']['application/json']['schema']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user