@@ -257,7 +257,6 @@ class View(generics.GenericAPIView):
257257 inspector .view = view
258258
259259 request_body = inspector .get_request_body (path , method )
260- print (request_body )
261260 assert request_body ['content' ]['application/json' ]['schema' ]['$ref' ] == '#/components/schemas/Item'
262261
263262 components = inspector .get_components (path , method )
@@ -928,7 +927,6 @@ def test_repeat_operation_ids(self):
928927 request = create_request ('/' )
929928 schema = generator .get_schema (request = request )
930929 schema_str = str (schema )
931- print (schema_str )
932930 assert schema_str .count ("operationId" ) == 2
933931 assert schema_str .count ("newExample" ) == 1
934932 assert schema_str .count ("oldExample" ) == 1
@@ -948,7 +946,6 @@ def test_duplicate_operation_id(self):
948946
949947 assert len (w ) == 1
950948 assert issubclass (w [- 1 ].category , UserWarning )
951- print (str (w [- 1 ].message ))
952949 assert 'You have a duplicated operationId' in str (w [- 1 ].message )
953950
954951 def test_operation_id_viewset (self ):
@@ -960,7 +957,6 @@ def test_operation_id_viewset(self):
960957
961958 request = create_request ('/' )
962959 schema = generator .get_schema (request = request )
963- print (schema )
964960 assert schema ['paths' ]['/account/' ]['get' ]['operationId' ] == 'listExampleViewSets'
965961 assert schema ['paths' ]['/account/' ]['post' ]['operationId' ] == 'createExampleViewSet'
966962 assert schema ['paths' ]['/account/{id}/' ]['get' ]['operationId' ] == 'retrieveExampleViewSet'
@@ -1284,7 +1280,6 @@ def test_serializer_model(self):
12841280 request = create_request ('/' )
12851281 schema = generator .get_schema (request = request )
12861282
1287- print (schema )
12881283
12891284 assert 'components' in schema
12901285 assert 'schemas' in schema ['components' ]
@@ -1299,7 +1294,6 @@ def test_authtoken_serializer(self):
12991294 request = create_request ('/' )
13001295 schema = generator .get_schema (request = request )
13011296
1302- print (schema )
13031297
13041298 route = schema ['paths' ]['/api-token-auth/' ]['post' ]
13051299 body_schema = route ['requestBody' ]['content' ]['application/json' ]['schema' ]
@@ -1327,7 +1321,6 @@ def test_component_name(self):
13271321 request = create_request ('/' )
13281322 schema = generator .get_schema (request = request )
13291323
1330- print (schema )
13311324 assert 'components' in schema
13321325 assert 'schemas' in schema ['components' ]
13331326 assert 'Ulysses' in schema ['components' ]['schemas' ]
0 commit comments