From c38bccc49acd7432a5ee5ac3cfd509523f9a9c21 Mon Sep 17 00:00:00 2001 From: Robert Jambrecic Date: Thu, 28 Nov 2024 10:55:30 +0000 Subject: [PATCH] Update tests --- tests/api/openapi/test_end2end.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/api/openapi/test_end2end.py b/tests/api/openapi/test_end2end.py index 1000411b..c4dbfcc5 100644 --- a/tests/api/openapi/test_end2end.py +++ b/tests/api/openapi/test_end2end.py @@ -897,6 +897,13 @@ def create_item_items__post() -> dict[str, Any]: client.set_function(create_item_items__post.__name__, create_item_items__post) + def test_get_functions(self, client: OpenAPI) -> None: + with pytest.raises( + expected_exception=DeprecationWarning, + match="Use function_names property instead of get_functions method", + ): + client.get_functions() + def test_register_for_execution( self, client: OpenAPI, azure_gpt35_turbo_16k_llm_config: dict[str, Any] ) -> None: