Skip to content

Commit 9df3bb4

Browse files
committed
fix test to test the right thing
1 parent 2edc6fe commit 9df3bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_parser/test_responses.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def test_response_from_data_ref_to_response_that_is_a_ref(mocker, any_property_f
233233

234234
response, schemas = responses.response_from_data(
235235
status_code=400,
236-
data=oai.Reference.model_construct(ref="#/components/schemas/ErrorResponse"),
236+
data=oai.Reference.model_construct(ref="#/components/responses/ErrorResponse"),
237237
schemas=Schemas(),
238238
responses={
239239
"BaseResponse": predefined_response_base_data,
@@ -244,7 +244,7 @@ def test_response_from_data_ref_to_response_that_is_a_ref(mocker, any_property_f
244244
)
245245

246246
assert isinstance(response, ParseError)
247-
assert "not allowed in responses" in response.detail
247+
assert "Top-level $ref" in response.detail
248248

249249

250250
def test_response_from_data_content_type_overrides(any_property_factory):

0 commit comments

Comments
 (0)