20
20
def test_response_from_data_no_content (any_property_factory ):
21
21
data = oai .Response .model_construct (description = "" )
22
22
23
- response , schemas = response_from_data (
23
+ response , _schemas = response_from_data (
24
24
status_code = HTTPStatusPattern (pattern = "200" , code_range = (200 , 200 )),
25
25
data = data ,
26
26
schemas = Schemas (),
@@ -49,7 +49,7 @@ def test_response_from_data_unsupported_content_type():
49
49
data = oai .Response .model_construct (description = "" , content = {"blah" : None })
50
50
config = MagicMock ()
51
51
config .content_type_overrides = {}
52
- response , schemas = response_from_data (
52
+ response , _schemas = response_from_data (
53
53
status_code = status_code ,
54
54
data = data ,
55
55
schemas = Schemas (),
@@ -68,7 +68,7 @@ def test_response_from_data_no_content_schema(any_property_factory):
68
68
)
69
69
config = MagicMock ()
70
70
config .content_type_overrides = {}
71
- response , schemas = response_from_data (
71
+ response , _schemas = response_from_data (
72
72
status_code = status_code ,
73
73
data = data ,
74
74
schemas = Schemas (),
@@ -99,7 +99,7 @@ def test_response_from_data_property_error(mocker):
99
99
config = MagicMock ()
100
100
config .content_type_overrides = {}
101
101
102
- response , schemas = responses .response_from_data (
102
+ response , _schemas = responses .response_from_data (
103
103
status_code = HTTPStatusPattern (pattern = "400" , code_range = (400 , 400 )),
104
104
data = data ,
105
105
schemas = Schemas (),
@@ -130,7 +130,7 @@ def test_response_from_data_property(mocker, any_property_factory):
130
130
config .content_type_overrides = {}
131
131
status_code = HTTPStatusPattern (pattern = "400" , code_range = (400 , 400 ))
132
132
133
- response , schemas = responses .response_from_data (
133
+ response , _schemas = responses .response_from_data (
134
134
status_code = status_code ,
135
135
data = data ,
136
136
schemas = Schemas (),
@@ -165,7 +165,7 @@ def test_response_from_data_reference(mocker, any_property_factory):
165
165
config = MagicMock ()
166
166
config .content_type_overrides = {}
167
167
168
- response , schemas = responses .response_from_data (
168
+ response , _schemas = responses .response_from_data (
169
169
status_code = HTTPStatusPattern (pattern = "400" , code_range = (400 , 400 )),
170
170
data = oai .Reference .model_construct (ref = "#/components/responses/ErrorResponse" ),
171
171
schemas = Schemas (),
@@ -200,7 +200,7 @@ def test_response_from_data_invalid_reference(ref_string, expected_error_string,
200
200
config = MagicMock ()
201
201
config .content_type_overrides = {}
202
202
203
- response , schemas = responses .response_from_data (
203
+ response , _schemas = responses .response_from_data (
204
204
status_code = HTTPStatusPattern (pattern = "400" , code_range = (400 , 400 )),
205
205
data = oai .Reference .model_construct (ref = ref_string ),
206
206
schemas = Schemas (),
@@ -226,7 +226,7 @@ def test_response_from_data_ref_to_response_that_is_a_ref(mocker, any_property_f
226
226
config = MagicMock ()
227
227
config .content_type_overrides = {}
228
228
229
- response , schemas = responses .response_from_data (
229
+ response , _schemas = responses .response_from_data (
230
230
status_code = HTTPStatusPattern (pattern = "400" , code_range = (400 , 400 )),
231
231
data = oai .Reference .model_construct (ref = "#/components/responses/ErrorResponse" ),
232
232
schemas = Schemas (),
@@ -249,7 +249,7 @@ def test_response_from_data_content_type_overrides(any_property_factory):
249
249
)
250
250
config = MagicMock ()
251
251
config .content_type_overrides = {"application/zip" : "application/octet-stream" }
252
- response , schemas = response_from_data (
252
+ response , _schemas = response_from_data (
253
253
status_code = HTTPStatusPattern (pattern = "200" , code_range = (200 , 200 )),
254
254
data = data ,
255
255
schemas = Schemas (),
0 commit comments