From e383d5d75a72f57bb2cfd8e7b951c6130cd6b630 Mon Sep 17 00:00:00 2001 From: zzstoatzz Date: Mon, 2 Dec 2024 20:11:06 -0600 Subject: [PATCH] update references to old class names --- tests/test_func_metadata.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/test_func_metadata.py b/tests/test_func_metadata.py index 91a102e40..980d2c503 100644 --- a/tests/test_func_metadata.py +++ b/tests/test_func_metadata.py @@ -241,12 +241,12 @@ def test_complex_function_json_schema(): "title": "InnerModel", "type": "object", }, - "TestInputModelA": { + "SomeInputModelA": { "properties": {}, - "title": "TestInputModelA", + "title": "SomeInputModelA", "type": "object", }, - "TestInputModelB": { + "SomeInputModelB": { "properties": { "how_many_shrimp": { "description": "How many shrimp in the tank???", @@ -257,7 +257,7 @@ def test_complex_function_json_schema(): "y": {"title": "Y", "type": "null"}, }, "required": ["how_many_shrimp", "ok", "y"], - "title": "TestInputModelB", + "title": "SomeInputModelB", "type": "object", }, }, @@ -301,9 +301,9 @@ def test_complex_function_json_schema(): "type": "integer", }, "unannotated": {"title": "unannotated", "type": "string"}, - "my_model_a": {"$ref": "#/$defs/TestInputModelA"}, - "my_model_a_forward_ref": {"$ref": "#/$defs/TestInputModelA"}, - "my_model_b": {"$ref": "#/$defs/TestInputModelB"}, + "my_model_a": {"$ref": "#/$defs/SomeInputModelA"}, + "my_model_a_forward_ref": {"$ref": "#/$defs/SomeInputModelA"}, + "my_model_b": {"$ref": "#/$defs/SomeInputModelB"}, "an_int_annotated_with_field_default": { "default": 1, "description": "An int with a field", @@ -316,7 +316,7 @@ def test_complex_function_json_schema(): "type": "string", }, "my_model_a_with_default": { - "$ref": "#/$defs/TestInputModelA", + "$ref": "#/$defs/SomeInputModelA", "default": {}, }, "an_int_with_default": {