From 001615be41d45218521591c721202cb8873e24bf Mon Sep 17 00:00:00 2001 From: Andreas Hartel Date: Mon, 13 Feb 2023 12:06:28 +0100 Subject: [PATCH] Rename available_models to models --- aleph_alpha_client/aleph_alpha_client.py | 4 ++-- tests/test_clients.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aleph_alpha_client/aleph_alpha_client.py b/aleph_alpha_client/aleph_alpha_client.py index e4fe7a0..ccbad0c 100644 --- a/aleph_alpha_client/aleph_alpha_client.py +++ b/aleph_alpha_client/aleph_alpha_client.py @@ -943,7 +943,7 @@ def _build_json_body( json_body["hosting"] = self.hosting return json_body - def available_models(self): + def models(self): """ Queries all models which are currently available. """ @@ -1400,7 +1400,7 @@ def _build_json_body( json_body["hosting"] = self.hosting return json_body - async def available_models(self): + async def models(self): """ Queries all models which are currently available. """ diff --git a/tests/test_clients.py b/tests/test_clients.py index ab13087..45700c2 100644 --- a/tests/test_clients.py +++ b/tests/test_clients.py @@ -65,7 +65,7 @@ async def test_nice_flag_on_async_client(httpserver: HTTPServer): @pytest.mark.system_test def test_available_models_sync_client(sync_client: Client, model_name: str): - models = sync_client.available_models() + models = sync_client.models() assert model_name in [model["name"] for model in models] @@ -73,5 +73,5 @@ def test_available_models_sync_client(sync_client: Client, model_name: str): async def test_available_models_async_client( async_client: AsyncClient, model_name: str ): - models = await async_client.available_models() + models = await async_client.models() assert model_name in [model["name"] for model in models]