Skip to content

Commit 6043d64

Browse files
committed
Drop redundant test_request.py, fold missing-schema test into test_model_settings
1 parent 40cd824 commit 6043d64

2 files changed

Lines changed: 5 additions & 38 deletions

File tree

tests/test_model_settings.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ def test_builder_json_schema_yields_custom_schema() -> None:
238238
assert b.build_settings(_req(rf)).json_schema == JSON_SCHEMA_DICT
239239

240240

241+
def test_json_schema_missing_schema_raises() -> None:
242+
with pytest.raises(InvalidRequestException, match="must define the schema"):
243+
ResponseFormat(type=ResponseFormats.json_schema).get_schema()
244+
245+
241246
def test_builder_without_json_schema_ignores_response_format() -> None:
242247
assert ModelSettingsBuilder().build_settings(_req(ResponseFormat(type=ResponseFormats.json))).json_schema is None
243248

tests/test_request.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)