From 5ccd5924656fc1b6b288636101843574fc43faea Mon Sep 17 00:00:00 2001 From: tazlin Date: Mon, 10 Jul 2023 22:34:52 -0400 Subject: [PATCH] fix: issue in example.py, line-ending bad in a json --- example.py | 5 ++++- .../production_responses/_v2_workers_get_200_production.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/example.py b/example.py index a5465b9..2f382ee 100644 --- a/example.py +++ b/example.py @@ -39,7 +39,10 @@ def main() -> None: min_ratings=0, ) - response: pydantic.BaseModel = ratingsAPIClient.get(userValidateRequest) + response: pydantic.BaseModel = ratingsAPIClient.submit_request( + userValidateRequest, + userValidateRequest.get_success_response_type(), + ) if not isinstance(response, UserValidateResponse): raise Exception("The response type doesn't match expected one!") diff --git a/tests/test_data/ai_horde_api/production_responses/_v2_workers_get_200_production.json b/tests/test_data/ai_horde_api/production_responses/_v2_workers_get_200_production.json index 1e53632..c81329e 100644 --- a/tests/test_data/ai_horde_api/production_responses/_v2_workers_get_200_production.json +++ b/tests/test_data/ai_horde_api/production_responses/_v2_workers_get_200_production.json @@ -3743,4 +3743,4 @@ "team": {}, "bridge_agent": "AI Horde Worker:22:https://github.com/db0/AI-Horde-Worker" } -] \ No newline at end of file +]