Skip to content

Commit 6cd6d05

Browse files
p1-raNementon
authored andcommitted
e2e tests / update golden records
1 parent ff24140 commit 6cd6d05

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def _parse_response(*, response: httpx.Response) -> Optional[Union[List[AModel],
6161
response_422 = HTTPValidationError.from_dict(response.json())
6262

6363
return response_422
64+
if response.status_code == 423:
65+
response_423 = HTTPValidationError.from_dict(response.json())
66+
67+
return response_423
6468
return None
6569

6670

end_to_end_tests/openapi.json

+10
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@
7070
}
7171
}
7272
}
73+
},
74+
"423": {
75+
"description": "Validation Error",
76+
"content": {
77+
"application/json": {
78+
"schema": {
79+
"$ref": "#/components/schemas/HTTPValidationError"
80+
}
81+
}
82+
}
7383
}
7484
}
7585
}

0 commit comments

Comments
 (0)