From 1967778c317634f98c29d59b547fd530d347340d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 10:29:14 +0000 Subject: [PATCH 1/3] chore: update mock server docs --- CONTRIBUTING.md | 7 -- tests/api_resources/actions/test_execute.py | 36 ++++----- tests/api_resources/queue/test_items.py | 60 +++++++-------- tests/api_resources/test_account.py | 12 +-- tests/api_resources/test_actions.py | 84 ++++++++++----------- tests/api_resources/test_auth.py | 24 +++--- tests/api_resources/test_authors.py | 84 ++++++++++----------- tests/api_resources/test_content.py | 16 ++-- tests/api_resources/test_queue.py | 36 ++++----- tests/api_resources/test_wordlist.py | 64 ++++++++-------- tests/api_resources/wordlist/test_words.py | 32 ++++---- 11 files changed, 224 insertions(+), 231 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 102cf85..3d1ba2a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl ## Running tests -Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. - -```sh -# you will need npm installed -$ npx prism mock path/to/your/openapi.yml -``` - ```sh $ ./scripts/test ``` diff --git a/tests/api_resources/actions/test_execute.py b/tests/api_resources/actions/test_execute.py index 54cacf1..b91b7da 100644 --- a/tests/api_resources/actions/test_execute.py +++ b/tests/api_resources/actions/test_execute.py @@ -22,7 +22,7 @@ class TestExecute: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_execute(self, client: ModerationAPI) -> None: execute = client.actions.execute.execute( @@ -30,7 +30,7 @@ def test_method_execute(self, client: ModerationAPI) -> None: ) assert_matches_type(ExecuteExecuteResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_execute_with_all_params(self, client: ModerationAPI) -> None: execute = client.actions.execute.execute( @@ -43,7 +43,7 @@ def test_method_execute_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ExecuteExecuteResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_execute(self, client: ModerationAPI) -> None: response = client.actions.execute.with_raw_response.execute( @@ -55,7 +55,7 @@ def test_raw_response_execute(self, client: ModerationAPI) -> None: execute = response.parse() assert_matches_type(ExecuteExecuteResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_execute(self, client: ModerationAPI) -> None: with client.actions.execute.with_streaming_response.execute( @@ -69,7 +69,7 @@ def test_streaming_response_execute(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_execute_by_id(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -79,7 +79,7 @@ def test_method_execute_by_id(self, client: ModerationAPI) -> None: assert_matches_type(ExecuteExecuteByIDResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_execute_by_id_with_all_params(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -93,7 +93,7 @@ def test_method_execute_by_id_with_all_params(self, client: ModerationAPI) -> No assert_matches_type(ExecuteExecuteByIDResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_execute_by_id(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -106,7 +106,7 @@ def test_raw_response_execute_by_id(self, client: ModerationAPI) -> None: execute = response.parse() assert_matches_type(ExecuteExecuteByIDResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_execute_by_id(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -121,7 +121,7 @@ def test_streaming_response_execute_by_id(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_execute_by_id(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -136,7 +136,7 @@ class TestAsyncExecute: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_execute(self, async_client: AsyncModerationAPI) -> None: execute = await async_client.actions.execute.execute( @@ -144,7 +144,7 @@ async def test_method_execute(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ExecuteExecuteResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_execute_with_all_params(self, async_client: AsyncModerationAPI) -> None: execute = await async_client.actions.execute.execute( @@ -157,7 +157,7 @@ async def test_method_execute_with_all_params(self, async_client: AsyncModeratio ) assert_matches_type(ExecuteExecuteResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_execute(self, async_client: AsyncModerationAPI) -> None: response = await async_client.actions.execute.with_raw_response.execute( @@ -169,7 +169,7 @@ async def test_raw_response_execute(self, async_client: AsyncModerationAPI) -> N execute = await response.parse() assert_matches_type(ExecuteExecuteResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_execute(self, async_client: AsyncModerationAPI) -> None: async with async_client.actions.execute.with_streaming_response.execute( @@ -183,7 +183,7 @@ async def test_streaming_response_execute(self, async_client: AsyncModerationAPI assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_execute_by_id(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -193,7 +193,7 @@ async def test_method_execute_by_id(self, async_client: AsyncModerationAPI) -> N assert_matches_type(ExecuteExecuteByIDResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_execute_by_id_with_all_params(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -207,7 +207,7 @@ async def test_method_execute_by_id_with_all_params(self, async_client: AsyncMod assert_matches_type(ExecuteExecuteByIDResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_execute_by_id(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -220,7 +220,7 @@ async def test_raw_response_execute_by_id(self, async_client: AsyncModerationAPI execute = await response.parse() assert_matches_type(ExecuteExecuteByIDResponse, execute, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_execute_by_id(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -235,7 +235,7 @@ async def test_streaming_response_execute_by_id(self, async_client: AsyncModerat assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_execute_by_id(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): diff --git a/tests/api_resources/queue/test_items.py b/tests/api_resources/queue/test_items.py index 112cddb..9b83358 100644 --- a/tests/api_resources/queue/test_items.py +++ b/tests/api_resources/queue/test_items.py @@ -21,7 +21,7 @@ class TestItems: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: ModerationAPI) -> None: item = client.queue.items.list( @@ -29,7 +29,7 @@ def test_method_list(self, client: ModerationAPI) -> None: ) assert_matches_type(ItemListResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_with_all_params(self, client: ModerationAPI) -> None: item = client.queue.items.list( @@ -48,7 +48,7 @@ def test_method_list_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ItemListResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: ModerationAPI) -> None: response = client.queue.items.with_raw_response.list( @@ -60,7 +60,7 @@ def test_raw_response_list(self, client: ModerationAPI) -> None: item = response.parse() assert_matches_type(ItemListResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: ModerationAPI) -> None: with client.queue.items.with_streaming_response.list( @@ -74,7 +74,7 @@ def test_streaming_response_list(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_list(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -82,7 +82,7 @@ def test_path_params_list(self, client: ModerationAPI) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_resolve(self, client: ModerationAPI) -> None: item = client.queue.items.resolve( @@ -91,7 +91,7 @@ def test_method_resolve(self, client: ModerationAPI) -> None: ) assert_matches_type(ItemResolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_resolve_with_all_params(self, client: ModerationAPI) -> None: item = client.queue.items.resolve( @@ -101,7 +101,7 @@ def test_method_resolve_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ItemResolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_resolve(self, client: ModerationAPI) -> None: response = client.queue.items.with_raw_response.resolve( @@ -114,7 +114,7 @@ def test_raw_response_resolve(self, client: ModerationAPI) -> None: item = response.parse() assert_matches_type(ItemResolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_resolve(self, client: ModerationAPI) -> None: with client.queue.items.with_streaming_response.resolve( @@ -129,7 +129,7 @@ def test_streaming_response_resolve(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_resolve(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -144,7 +144,7 @@ def test_path_params_resolve(self, client: ModerationAPI) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_unresolve(self, client: ModerationAPI) -> None: item = client.queue.items.unresolve( @@ -153,7 +153,7 @@ def test_method_unresolve(self, client: ModerationAPI) -> None: ) assert_matches_type(ItemUnresolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_unresolve_with_all_params(self, client: ModerationAPI) -> None: item = client.queue.items.unresolve( @@ -163,7 +163,7 @@ def test_method_unresolve_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ItemUnresolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_unresolve(self, client: ModerationAPI) -> None: response = client.queue.items.with_raw_response.unresolve( @@ -176,7 +176,7 @@ def test_raw_response_unresolve(self, client: ModerationAPI) -> None: item = response.parse() assert_matches_type(ItemUnresolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_unresolve(self, client: ModerationAPI) -> None: with client.queue.items.with_streaming_response.unresolve( @@ -191,7 +191,7 @@ def test_streaming_response_unresolve(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_unresolve(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -212,7 +212,7 @@ class TestAsyncItems: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncModerationAPI) -> None: item = await async_client.queue.items.list( @@ -220,7 +220,7 @@ async def test_method_list(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ItemListResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncModerationAPI) -> None: item = await async_client.queue.items.list( @@ -239,7 +239,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncModerationAP ) assert_matches_type(ItemListResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None: response = await async_client.queue.items.with_raw_response.list( @@ -251,7 +251,7 @@ async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None item = await response.parse() assert_matches_type(ItemListResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncModerationAPI) -> None: async with async_client.queue.items.with_streaming_response.list( @@ -265,7 +265,7 @@ async def test_streaming_response_list(self, async_client: AsyncModerationAPI) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_list(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -273,7 +273,7 @@ async def test_path_params_list(self, async_client: AsyncModerationAPI) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_resolve(self, async_client: AsyncModerationAPI) -> None: item = await async_client.queue.items.resolve( @@ -282,7 +282,7 @@ async def test_method_resolve(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ItemResolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_resolve_with_all_params(self, async_client: AsyncModerationAPI) -> None: item = await async_client.queue.items.resolve( @@ -292,7 +292,7 @@ async def test_method_resolve_with_all_params(self, async_client: AsyncModeratio ) assert_matches_type(ItemResolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_resolve(self, async_client: AsyncModerationAPI) -> None: response = await async_client.queue.items.with_raw_response.resolve( @@ -305,7 +305,7 @@ async def test_raw_response_resolve(self, async_client: AsyncModerationAPI) -> N item = await response.parse() assert_matches_type(ItemResolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_resolve(self, async_client: AsyncModerationAPI) -> None: async with async_client.queue.items.with_streaming_response.resolve( @@ -320,7 +320,7 @@ async def test_streaming_response_resolve(self, async_client: AsyncModerationAPI assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_resolve(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -335,7 +335,7 @@ async def test_path_params_resolve(self, async_client: AsyncModerationAPI) -> No id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_unresolve(self, async_client: AsyncModerationAPI) -> None: item = await async_client.queue.items.unresolve( @@ -344,7 +344,7 @@ async def test_method_unresolve(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ItemUnresolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_unresolve_with_all_params(self, async_client: AsyncModerationAPI) -> None: item = await async_client.queue.items.unresolve( @@ -354,7 +354,7 @@ async def test_method_unresolve_with_all_params(self, async_client: AsyncModerat ) assert_matches_type(ItemUnresolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_unresolve(self, async_client: AsyncModerationAPI) -> None: response = await async_client.queue.items.with_raw_response.unresolve( @@ -367,7 +367,7 @@ async def test_raw_response_unresolve(self, async_client: AsyncModerationAPI) -> item = await response.parse() assert_matches_type(ItemUnresolveResponse, item, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_unresolve(self, async_client: AsyncModerationAPI) -> None: async with async_client.queue.items.with_streaming_response.unresolve( @@ -382,7 +382,7 @@ async def test_streaming_response_unresolve(self, async_client: AsyncModerationA assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_unresolve(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_account.py b/tests/api_resources/test_account.py index 298f8da..a27dc17 100644 --- a/tests/api_resources/test_account.py +++ b/tests/api_resources/test_account.py @@ -17,13 +17,13 @@ class TestAccount: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: ModerationAPI) -> None: account = client.account.list() assert_matches_type(AccountListResponse, account, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: ModerationAPI) -> None: response = client.account.with_raw_response.list() @@ -33,7 +33,7 @@ def test_raw_response_list(self, client: ModerationAPI) -> None: account = response.parse() assert_matches_type(AccountListResponse, account, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: ModerationAPI) -> None: with client.account.with_streaming_response.list() as response: @@ -51,13 +51,13 @@ class TestAsyncAccount: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncModerationAPI) -> None: account = await async_client.account.list() assert_matches_type(AccountListResponse, account, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None: response = await async_client.account.with_raw_response.list() @@ -67,7 +67,7 @@ async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None account = await response.parse() assert_matches_type(AccountListResponse, account, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncModerationAPI) -> None: async with async_client.account.with_streaming_response.list() as response: diff --git a/tests/api_resources/test_actions.py b/tests/api_resources/test_actions.py index 91327d9..27f64f1 100644 --- a/tests/api_resources/test_actions.py +++ b/tests/api_resources/test_actions.py @@ -23,7 +23,7 @@ class TestActions: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: ModerationAPI) -> None: action = client.actions.create( @@ -31,7 +31,7 @@ def test_method_create(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionCreateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: ModerationAPI) -> None: action = client.actions.create( @@ -57,7 +57,7 @@ def test_method_create_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionCreateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: ModerationAPI) -> None: response = client.actions.with_raw_response.create( @@ -69,7 +69,7 @@ def test_raw_response_create(self, client: ModerationAPI) -> None: action = response.parse() assert_matches_type(ActionCreateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: ModerationAPI) -> None: with client.actions.with_streaming_response.create( @@ -83,7 +83,7 @@ def test_streaming_response_create(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: ModerationAPI) -> None: action = client.actions.retrieve( @@ -91,7 +91,7 @@ def test_method_retrieve(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionRetrieveResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: ModerationAPI) -> None: response = client.actions.with_raw_response.retrieve( @@ -103,7 +103,7 @@ def test_raw_response_retrieve(self, client: ModerationAPI) -> None: action = response.parse() assert_matches_type(ActionRetrieveResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: with client.actions.with_streaming_response.retrieve( @@ -117,7 +117,7 @@ def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -125,7 +125,7 @@ def test_path_params_retrieve(self, client: ModerationAPI) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: ModerationAPI) -> None: action = client.actions.update( @@ -133,7 +133,7 @@ def test_method_update(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionUpdateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: ModerationAPI) -> None: action = client.actions.update( @@ -160,7 +160,7 @@ def test_method_update_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionUpdateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: ModerationAPI) -> None: response = client.actions.with_raw_response.update( @@ -172,7 +172,7 @@ def test_raw_response_update(self, client: ModerationAPI) -> None: action = response.parse() assert_matches_type(ActionUpdateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: ModerationAPI) -> None: with client.actions.with_streaming_response.update( @@ -186,7 +186,7 @@ def test_streaming_response_update(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -194,13 +194,13 @@ def test_path_params_update(self, client: ModerationAPI) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: ModerationAPI) -> None: action = client.actions.list() assert_matches_type(ActionListResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_with_all_params(self, client: ModerationAPI) -> None: action = client.actions.list( @@ -208,7 +208,7 @@ def test_method_list_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionListResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: ModerationAPI) -> None: response = client.actions.with_raw_response.list() @@ -218,7 +218,7 @@ def test_raw_response_list(self, client: ModerationAPI) -> None: action = response.parse() assert_matches_type(ActionListResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: ModerationAPI) -> None: with client.actions.with_streaming_response.list() as response: @@ -230,7 +230,7 @@ def test_streaming_response_list(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: ModerationAPI) -> None: action = client.actions.delete( @@ -238,7 +238,7 @@ def test_method_delete(self, client: ModerationAPI) -> None: ) assert_matches_type(ActionDeleteResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: ModerationAPI) -> None: response = client.actions.with_raw_response.delete( @@ -250,7 +250,7 @@ def test_raw_response_delete(self, client: ModerationAPI) -> None: action = response.parse() assert_matches_type(ActionDeleteResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: ModerationAPI) -> None: with client.actions.with_streaming_response.delete( @@ -264,7 +264,7 @@ def test_streaming_response_delete(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -278,7 +278,7 @@ class TestAsyncActions: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.create( @@ -286,7 +286,7 @@ async def test_method_create(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ActionCreateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.create( @@ -312,7 +312,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncModeration ) assert_matches_type(ActionCreateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncModerationAPI) -> None: response = await async_client.actions.with_raw_response.create( @@ -324,7 +324,7 @@ async def test_raw_response_create(self, async_client: AsyncModerationAPI) -> No action = await response.parse() assert_matches_type(ActionCreateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncModerationAPI) -> None: async with async_client.actions.with_streaming_response.create( @@ -338,7 +338,7 @@ async def test_streaming_response_create(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.retrieve( @@ -346,7 +346,7 @@ async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ActionRetrieveResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> None: response = await async_client.actions.with_raw_response.retrieve( @@ -358,7 +358,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> action = await response.parse() assert_matches_type(ActionRetrieveResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncModerationAPI) -> None: async with async_client.actions.with_streaming_response.retrieve( @@ -372,7 +372,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncModerationAP assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -380,7 +380,7 @@ async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> N "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.update( @@ -388,7 +388,7 @@ async def test_method_update(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ActionUpdateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.update( @@ -415,7 +415,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncModeration ) assert_matches_type(ActionUpdateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncModerationAPI) -> None: response = await async_client.actions.with_raw_response.update( @@ -427,7 +427,7 @@ async def test_raw_response_update(self, async_client: AsyncModerationAPI) -> No action = await response.parse() assert_matches_type(ActionUpdateResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncModerationAPI) -> None: async with async_client.actions.with_streaming_response.update( @@ -441,7 +441,7 @@ async def test_streaming_response_update(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -449,13 +449,13 @@ async def test_path_params_update(self, async_client: AsyncModerationAPI) -> Non id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.list() assert_matches_type(ActionListResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.list( @@ -463,7 +463,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncModerationAP ) assert_matches_type(ActionListResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None: response = await async_client.actions.with_raw_response.list() @@ -473,7 +473,7 @@ async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None action = await response.parse() assert_matches_type(ActionListResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncModerationAPI) -> None: async with async_client.actions.with_streaming_response.list() as response: @@ -485,7 +485,7 @@ async def test_streaming_response_list(self, async_client: AsyncModerationAPI) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncModerationAPI) -> None: action = await async_client.actions.delete( @@ -493,7 +493,7 @@ async def test_method_delete(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ActionDeleteResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncModerationAPI) -> None: response = await async_client.actions.with_raw_response.delete( @@ -505,7 +505,7 @@ async def test_raw_response_delete(self, async_client: AsyncModerationAPI) -> No action = await response.parse() assert_matches_type(ActionDeleteResponse, action, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncModerationAPI) -> None: async with async_client.actions.with_streaming_response.delete( @@ -519,7 +519,7 @@ async def test_streaming_response_delete(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_auth.py b/tests/api_resources/test_auth.py index e2075ac..ab76fc5 100644 --- a/tests/api_resources/test_auth.py +++ b/tests/api_resources/test_auth.py @@ -19,7 +19,7 @@ class TestAuth: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -27,7 +27,7 @@ def test_method_create(self, client: ModerationAPI) -> None: assert_matches_type(AuthCreateResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -38,7 +38,7 @@ def test_raw_response_create(self, client: ModerationAPI) -> None: auth = response.parse() assert_matches_type(AuthCreateResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -51,7 +51,7 @@ def test_streaming_response_create(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -59,7 +59,7 @@ def test_method_retrieve(self, client: ModerationAPI) -> None: assert_matches_type(AuthRetrieveResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -70,7 +70,7 @@ def test_raw_response_retrieve(self, client: ModerationAPI) -> None: auth = response.parse() assert_matches_type(AuthRetrieveResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -89,7 +89,7 @@ class TestAsyncAuth: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -97,7 +97,7 @@ async def test_method_create(self, async_client: AsyncModerationAPI) -> None: assert_matches_type(AuthCreateResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -108,7 +108,7 @@ async def test_raw_response_create(self, async_client: AsyncModerationAPI) -> No auth = await response.parse() assert_matches_type(AuthCreateResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -121,7 +121,7 @@ async def test_streaming_response_create(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -129,7 +129,7 @@ async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: assert_matches_type(AuthRetrieveResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): @@ -140,7 +140,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> auth = await response.parse() assert_matches_type(AuthRetrieveResponse, auth, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.warns(DeprecationWarning): diff --git a/tests/api_resources/test_authors.py b/tests/api_resources/test_authors.py index daf27da..2cbc343 100644 --- a/tests/api_resources/test_authors.py +++ b/tests/api_resources/test_authors.py @@ -23,7 +23,7 @@ class TestAuthors: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: ModerationAPI) -> None: author = client.authors.create( @@ -31,7 +31,7 @@ def test_method_create(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorCreateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: ModerationAPI) -> None: author = client.authors.create( @@ -52,7 +52,7 @@ def test_method_create_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorCreateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: ModerationAPI) -> None: response = client.authors.with_raw_response.create( @@ -64,7 +64,7 @@ def test_raw_response_create(self, client: ModerationAPI) -> None: author = response.parse() assert_matches_type(AuthorCreateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: ModerationAPI) -> None: with client.authors.with_streaming_response.create( @@ -78,7 +78,7 @@ def test_streaming_response_create(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: ModerationAPI) -> None: author = client.authors.retrieve( @@ -86,7 +86,7 @@ def test_method_retrieve(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorRetrieveResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: ModerationAPI) -> None: response = client.authors.with_raw_response.retrieve( @@ -98,7 +98,7 @@ def test_raw_response_retrieve(self, client: ModerationAPI) -> None: author = response.parse() assert_matches_type(AuthorRetrieveResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: with client.authors.with_streaming_response.retrieve( @@ -112,7 +112,7 @@ def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -120,7 +120,7 @@ def test_path_params_retrieve(self, client: ModerationAPI) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: ModerationAPI) -> None: author = client.authors.update( @@ -128,7 +128,7 @@ def test_method_update(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorUpdateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: ModerationAPI) -> None: author = client.authors.update( @@ -149,7 +149,7 @@ def test_method_update_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorUpdateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: ModerationAPI) -> None: response = client.authors.with_raw_response.update( @@ -161,7 +161,7 @@ def test_raw_response_update(self, client: ModerationAPI) -> None: author = response.parse() assert_matches_type(AuthorUpdateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: ModerationAPI) -> None: with client.authors.with_streaming_response.update( @@ -175,7 +175,7 @@ def test_streaming_response_update(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -183,13 +183,13 @@ def test_path_params_update(self, client: ModerationAPI) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: ModerationAPI) -> None: author = client.authors.list() assert_matches_type(AuthorListResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_with_all_params(self, client: ModerationAPI) -> None: author = client.authors.list( @@ -203,7 +203,7 @@ def test_method_list_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorListResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: ModerationAPI) -> None: response = client.authors.with_raw_response.list() @@ -213,7 +213,7 @@ def test_raw_response_list(self, client: ModerationAPI) -> None: author = response.parse() assert_matches_type(AuthorListResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: ModerationAPI) -> None: with client.authors.with_streaming_response.list() as response: @@ -225,7 +225,7 @@ def test_streaming_response_list(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: ModerationAPI) -> None: author = client.authors.delete( @@ -233,7 +233,7 @@ def test_method_delete(self, client: ModerationAPI) -> None: ) assert_matches_type(AuthorDeleteResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: ModerationAPI) -> None: response = client.authors.with_raw_response.delete( @@ -245,7 +245,7 @@ def test_raw_response_delete(self, client: ModerationAPI) -> None: author = response.parse() assert_matches_type(AuthorDeleteResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: ModerationAPI) -> None: with client.authors.with_streaming_response.delete( @@ -259,7 +259,7 @@ def test_streaming_response_delete(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -273,7 +273,7 @@ class TestAsyncAuthors: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.create( @@ -281,7 +281,7 @@ async def test_method_create(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(AuthorCreateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.create( @@ -302,7 +302,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncModeration ) assert_matches_type(AuthorCreateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncModerationAPI) -> None: response = await async_client.authors.with_raw_response.create( @@ -314,7 +314,7 @@ async def test_raw_response_create(self, async_client: AsyncModerationAPI) -> No author = await response.parse() assert_matches_type(AuthorCreateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncModerationAPI) -> None: async with async_client.authors.with_streaming_response.create( @@ -328,7 +328,7 @@ async def test_streaming_response_create(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.retrieve( @@ -336,7 +336,7 @@ async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(AuthorRetrieveResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> None: response = await async_client.authors.with_raw_response.retrieve( @@ -348,7 +348,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> author = await response.parse() assert_matches_type(AuthorRetrieveResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncModerationAPI) -> None: async with async_client.authors.with_streaming_response.retrieve( @@ -362,7 +362,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncModerationAP assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -370,7 +370,7 @@ async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> N "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.update( @@ -378,7 +378,7 @@ async def test_method_update(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(AuthorUpdateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.update( @@ -399,7 +399,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncModeration ) assert_matches_type(AuthorUpdateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncModerationAPI) -> None: response = await async_client.authors.with_raw_response.update( @@ -411,7 +411,7 @@ async def test_raw_response_update(self, async_client: AsyncModerationAPI) -> No author = await response.parse() assert_matches_type(AuthorUpdateResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncModerationAPI) -> None: async with async_client.authors.with_streaming_response.update( @@ -425,7 +425,7 @@ async def test_streaming_response_update(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -433,13 +433,13 @@ async def test_path_params_update(self, async_client: AsyncModerationAPI) -> Non id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.list() assert_matches_type(AuthorListResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.list( @@ -453,7 +453,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncModerationAP ) assert_matches_type(AuthorListResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None: response = await async_client.authors.with_raw_response.list() @@ -463,7 +463,7 @@ async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None author = await response.parse() assert_matches_type(AuthorListResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncModerationAPI) -> None: async with async_client.authors.with_streaming_response.list() as response: @@ -475,7 +475,7 @@ async def test_streaming_response_list(self, async_client: AsyncModerationAPI) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncModerationAPI) -> None: author = await async_client.authors.delete( @@ -483,7 +483,7 @@ async def test_method_delete(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(AuthorDeleteResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncModerationAPI) -> None: response = await async_client.authors.with_raw_response.delete( @@ -495,7 +495,7 @@ async def test_raw_response_delete(self, async_client: AsyncModerationAPI) -> No author = await response.parse() assert_matches_type(AuthorDeleteResponse, author, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncModerationAPI) -> None: async with async_client.authors.with_streaming_response.delete( @@ -509,7 +509,7 @@ async def test_streaming_response_delete(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_content.py b/tests/api_resources/test_content.py index 60d707c..228d58d 100644 --- a/tests/api_resources/test_content.py +++ b/tests/api_resources/test_content.py @@ -17,7 +17,7 @@ class TestContent: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_submit(self, client: ModerationAPI) -> None: content = client.content.submit( @@ -28,7 +28,7 @@ def test_method_submit(self, client: ModerationAPI) -> None: ) assert_matches_type(ContentSubmitResponse, content, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_submit_with_all_params(self, client: ModerationAPI) -> None: content = client.content.submit( @@ -54,7 +54,7 @@ def test_method_submit_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(ContentSubmitResponse, content, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_submit(self, client: ModerationAPI) -> None: response = client.content.with_raw_response.submit( @@ -69,7 +69,7 @@ def test_raw_response_submit(self, client: ModerationAPI) -> None: content = response.parse() assert_matches_type(ContentSubmitResponse, content, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_submit(self, client: ModerationAPI) -> None: with client.content.with_streaming_response.submit( @@ -92,7 +92,7 @@ class TestAsyncContent: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_submit(self, async_client: AsyncModerationAPI) -> None: content = await async_client.content.submit( @@ -103,7 +103,7 @@ async def test_method_submit(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(ContentSubmitResponse, content, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_submit_with_all_params(self, async_client: AsyncModerationAPI) -> None: content = await async_client.content.submit( @@ -129,7 +129,7 @@ async def test_method_submit_with_all_params(self, async_client: AsyncModeration ) assert_matches_type(ContentSubmitResponse, content, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_submit(self, async_client: AsyncModerationAPI) -> None: response = await async_client.content.with_raw_response.submit( @@ -144,7 +144,7 @@ async def test_raw_response_submit(self, async_client: AsyncModerationAPI) -> No content = await response.parse() assert_matches_type(ContentSubmitResponse, content, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_submit(self, async_client: AsyncModerationAPI) -> None: async with async_client.content.with_streaming_response.submit( diff --git a/tests/api_resources/test_queue.py b/tests/api_resources/test_queue.py index 4d0dcb4..5d555d8 100644 --- a/tests/api_resources/test_queue.py +++ b/tests/api_resources/test_queue.py @@ -17,7 +17,7 @@ class TestQueue: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: ModerationAPI) -> None: queue = client.queue.retrieve( @@ -25,7 +25,7 @@ def test_method_retrieve(self, client: ModerationAPI) -> None: ) assert_matches_type(QueueRetrieveResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: ModerationAPI) -> None: response = client.queue.with_raw_response.retrieve( @@ -37,7 +37,7 @@ def test_raw_response_retrieve(self, client: ModerationAPI) -> None: queue = response.parse() assert_matches_type(QueueRetrieveResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: with client.queue.with_streaming_response.retrieve( @@ -51,7 +51,7 @@ def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -59,7 +59,7 @@ def test_path_params_retrieve(self, client: ModerationAPI) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_stats(self, client: ModerationAPI) -> None: queue = client.queue.get_stats( @@ -67,7 +67,7 @@ def test_method_get_stats(self, client: ModerationAPI) -> None: ) assert_matches_type(QueueGetStatsResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_stats_with_all_params(self, client: ModerationAPI) -> None: queue = client.queue.get_stats( @@ -76,7 +76,7 @@ def test_method_get_stats_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(QueueGetStatsResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_get_stats(self, client: ModerationAPI) -> None: response = client.queue.with_raw_response.get_stats( @@ -88,7 +88,7 @@ def test_raw_response_get_stats(self, client: ModerationAPI) -> None: queue = response.parse() assert_matches_type(QueueGetStatsResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_get_stats(self, client: ModerationAPI) -> None: with client.queue.with_streaming_response.get_stats( @@ -102,7 +102,7 @@ def test_streaming_response_get_stats(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_get_stats(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -116,7 +116,7 @@ class TestAsyncQueue: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: queue = await async_client.queue.retrieve( @@ -124,7 +124,7 @@ async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(QueueRetrieveResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> None: response = await async_client.queue.with_raw_response.retrieve( @@ -136,7 +136,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> queue = await response.parse() assert_matches_type(QueueRetrieveResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncModerationAPI) -> None: async with async_client.queue.with_streaming_response.retrieve( @@ -150,7 +150,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncModerationAP assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -158,7 +158,7 @@ async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> N "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_stats(self, async_client: AsyncModerationAPI) -> None: queue = await async_client.queue.get_stats( @@ -166,7 +166,7 @@ async def test_method_get_stats(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(QueueGetStatsResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_stats_with_all_params(self, async_client: AsyncModerationAPI) -> None: queue = await async_client.queue.get_stats( @@ -175,7 +175,7 @@ async def test_method_get_stats_with_all_params(self, async_client: AsyncModerat ) assert_matches_type(QueueGetStatsResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_get_stats(self, async_client: AsyncModerationAPI) -> None: response = await async_client.queue.with_raw_response.get_stats( @@ -187,7 +187,7 @@ async def test_raw_response_get_stats(self, async_client: AsyncModerationAPI) -> queue = await response.parse() assert_matches_type(QueueGetStatsResponse, queue, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_get_stats(self, async_client: AsyncModerationAPI) -> None: async with async_client.queue.with_streaming_response.get_stats( @@ -201,7 +201,7 @@ async def test_streaming_response_get_stats(self, async_client: AsyncModerationA assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_get_stats(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_wordlist.py b/tests/api_resources/test_wordlist.py index 971af8a..d1726cd 100644 --- a/tests/api_resources/test_wordlist.py +++ b/tests/api_resources/test_wordlist.py @@ -22,7 +22,7 @@ class TestWordlist: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: ModerationAPI) -> None: wordlist = client.wordlist.retrieve( @@ -30,7 +30,7 @@ def test_method_retrieve(self, client: ModerationAPI) -> None: ) assert_matches_type(WordlistRetrieveResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: ModerationAPI) -> None: response = client.wordlist.with_raw_response.retrieve( @@ -42,7 +42,7 @@ def test_raw_response_retrieve(self, client: ModerationAPI) -> None: wordlist = response.parse() assert_matches_type(WordlistRetrieveResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: with client.wordlist.with_streaming_response.retrieve( @@ -56,7 +56,7 @@ def test_streaming_response_retrieve(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -64,7 +64,7 @@ def test_path_params_retrieve(self, client: ModerationAPI) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: ModerationAPI) -> None: wordlist = client.wordlist.update( @@ -72,7 +72,7 @@ def test_method_update(self, client: ModerationAPI) -> None: ) assert_matches_type(WordlistUpdateResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: ModerationAPI) -> None: wordlist = client.wordlist.update( @@ -85,7 +85,7 @@ def test_method_update_with_all_params(self, client: ModerationAPI) -> None: ) assert_matches_type(WordlistUpdateResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: ModerationAPI) -> None: response = client.wordlist.with_raw_response.update( @@ -97,7 +97,7 @@ def test_raw_response_update(self, client: ModerationAPI) -> None: wordlist = response.parse() assert_matches_type(WordlistUpdateResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: ModerationAPI) -> None: with client.wordlist.with_streaming_response.update( @@ -111,7 +111,7 @@ def test_streaming_response_update(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -119,13 +119,13 @@ def test_path_params_update(self, client: ModerationAPI) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: ModerationAPI) -> None: wordlist = client.wordlist.list() assert_matches_type(WordlistListResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: ModerationAPI) -> None: response = client.wordlist.with_raw_response.list() @@ -135,7 +135,7 @@ def test_raw_response_list(self, client: ModerationAPI) -> None: wordlist = response.parse() assert_matches_type(WordlistListResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: ModerationAPI) -> None: with client.wordlist.with_streaming_response.list() as response: @@ -147,7 +147,7 @@ def test_streaming_response_list(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_embedding_status(self, client: ModerationAPI) -> None: wordlist = client.wordlist.get_embedding_status( @@ -155,7 +155,7 @@ def test_method_get_embedding_status(self, client: ModerationAPI) -> None: ) assert_matches_type(WordlistGetEmbeddingStatusResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_get_embedding_status(self, client: ModerationAPI) -> None: response = client.wordlist.with_raw_response.get_embedding_status( @@ -167,7 +167,7 @@ def test_raw_response_get_embedding_status(self, client: ModerationAPI) -> None: wordlist = response.parse() assert_matches_type(WordlistGetEmbeddingStatusResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_get_embedding_status(self, client: ModerationAPI) -> None: with client.wordlist.with_streaming_response.get_embedding_status( @@ -181,7 +181,7 @@ def test_streaming_response_get_embedding_status(self, client: ModerationAPI) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_get_embedding_status(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -195,7 +195,7 @@ class TestAsyncWordlist: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: wordlist = await async_client.wordlist.retrieve( @@ -203,7 +203,7 @@ async def test_method_retrieve(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(WordlistRetrieveResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> None: response = await async_client.wordlist.with_raw_response.retrieve( @@ -215,7 +215,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncModerationAPI) -> wordlist = await response.parse() assert_matches_type(WordlistRetrieveResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncModerationAPI) -> None: async with async_client.wordlist.with_streaming_response.retrieve( @@ -229,7 +229,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncModerationAP assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -237,7 +237,7 @@ async def test_path_params_retrieve(self, async_client: AsyncModerationAPI) -> N "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncModerationAPI) -> None: wordlist = await async_client.wordlist.update( @@ -245,7 +245,7 @@ async def test_method_update(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(WordlistUpdateResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncModerationAPI) -> None: wordlist = await async_client.wordlist.update( @@ -258,7 +258,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncModeration ) assert_matches_type(WordlistUpdateResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncModerationAPI) -> None: response = await async_client.wordlist.with_raw_response.update( @@ -270,7 +270,7 @@ async def test_raw_response_update(self, async_client: AsyncModerationAPI) -> No wordlist = await response.parse() assert_matches_type(WordlistUpdateResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncModerationAPI) -> None: async with async_client.wordlist.with_streaming_response.update( @@ -284,7 +284,7 @@ async def test_streaming_response_update(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -292,13 +292,13 @@ async def test_path_params_update(self, async_client: AsyncModerationAPI) -> Non id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncModerationAPI) -> None: wordlist = await async_client.wordlist.list() assert_matches_type(WordlistListResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None: response = await async_client.wordlist.with_raw_response.list() @@ -308,7 +308,7 @@ async def test_raw_response_list(self, async_client: AsyncModerationAPI) -> None wordlist = await response.parse() assert_matches_type(WordlistListResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncModerationAPI) -> None: async with async_client.wordlist.with_streaming_response.list() as response: @@ -320,7 +320,7 @@ async def test_streaming_response_list(self, async_client: AsyncModerationAPI) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_embedding_status(self, async_client: AsyncModerationAPI) -> None: wordlist = await async_client.wordlist.get_embedding_status( @@ -328,7 +328,7 @@ async def test_method_get_embedding_status(self, async_client: AsyncModerationAP ) assert_matches_type(WordlistGetEmbeddingStatusResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_get_embedding_status(self, async_client: AsyncModerationAPI) -> None: response = await async_client.wordlist.with_raw_response.get_embedding_status( @@ -340,7 +340,7 @@ async def test_raw_response_get_embedding_status(self, async_client: AsyncModera wordlist = await response.parse() assert_matches_type(WordlistGetEmbeddingStatusResponse, wordlist, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_get_embedding_status(self, async_client: AsyncModerationAPI) -> None: async with async_client.wordlist.with_streaming_response.get_embedding_status( @@ -354,7 +354,7 @@ async def test_streaming_response_get_embedding_status(self, async_client: Async assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_get_embedding_status(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/wordlist/test_words.py b/tests/api_resources/wordlist/test_words.py index 9012ce8..03f04b2 100644 --- a/tests/api_resources/wordlist/test_words.py +++ b/tests/api_resources/wordlist/test_words.py @@ -17,7 +17,7 @@ class TestWords: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_add(self, client: ModerationAPI) -> None: word = client.wordlist.words.add( @@ -26,7 +26,7 @@ def test_method_add(self, client: ModerationAPI) -> None: ) assert_matches_type(WordAddResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_add(self, client: ModerationAPI) -> None: response = client.wordlist.words.with_raw_response.add( @@ -39,7 +39,7 @@ def test_raw_response_add(self, client: ModerationAPI) -> None: word = response.parse() assert_matches_type(WordAddResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_add(self, client: ModerationAPI) -> None: with client.wordlist.words.with_streaming_response.add( @@ -54,7 +54,7 @@ def test_streaming_response_add(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_add(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -63,7 +63,7 @@ def test_path_params_add(self, client: ModerationAPI) -> None: words=["string"], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_remove(self, client: ModerationAPI) -> None: word = client.wordlist.words.remove( @@ -72,7 +72,7 @@ def test_method_remove(self, client: ModerationAPI) -> None: ) assert_matches_type(WordRemoveResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_remove(self, client: ModerationAPI) -> None: response = client.wordlist.words.with_raw_response.remove( @@ -85,7 +85,7 @@ def test_raw_response_remove(self, client: ModerationAPI) -> None: word = response.parse() assert_matches_type(WordRemoveResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_remove(self, client: ModerationAPI) -> None: with client.wordlist.words.with_streaming_response.remove( @@ -100,7 +100,7 @@ def test_streaming_response_remove(self, client: ModerationAPI) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_remove(self, client: ModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -115,7 +115,7 @@ class TestAsyncWords: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_add(self, async_client: AsyncModerationAPI) -> None: word = await async_client.wordlist.words.add( @@ -124,7 +124,7 @@ async def test_method_add(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(WordAddResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_add(self, async_client: AsyncModerationAPI) -> None: response = await async_client.wordlist.words.with_raw_response.add( @@ -137,7 +137,7 @@ async def test_raw_response_add(self, async_client: AsyncModerationAPI) -> None: word = await response.parse() assert_matches_type(WordAddResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_add(self, async_client: AsyncModerationAPI) -> None: async with async_client.wordlist.words.with_streaming_response.add( @@ -152,7 +152,7 @@ async def test_streaming_response_add(self, async_client: AsyncModerationAPI) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_add(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -161,7 +161,7 @@ async def test_path_params_add(self, async_client: AsyncModerationAPI) -> None: words=["string"], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_remove(self, async_client: AsyncModerationAPI) -> None: word = await async_client.wordlist.words.remove( @@ -170,7 +170,7 @@ async def test_method_remove(self, async_client: AsyncModerationAPI) -> None: ) assert_matches_type(WordRemoveResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_remove(self, async_client: AsyncModerationAPI) -> None: response = await async_client.wordlist.words.with_raw_response.remove( @@ -183,7 +183,7 @@ async def test_raw_response_remove(self, async_client: AsyncModerationAPI) -> No word = await response.parse() assert_matches_type(WordRemoveResponse, word, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_remove(self, async_client: AsyncModerationAPI) -> None: async with async_client.wordlist.words.with_streaming_response.remove( @@ -198,7 +198,7 @@ async def test_streaming_response_remove(self, async_client: AsyncModerationAPI) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_remove(self, async_client: AsyncModerationAPI) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): From 2ecef56e5c598ea92ee3ed34d5f16dd91be34f61 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 15:15:21 +0000 Subject: [PATCH 2/3] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index b617f28..5ec92ed 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 27 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/moderation-api%2Fmoderation-api-67a3fe4439c3aa74fb2c18b207b43c790d42bab7bfd7e5e16f3e1046765ec959.yml openapi_spec_hash: c87b33c2c72a172da02ed75d4e79eb70 -config_hash: 6a52f6ae7d55cf3b4e91538cc7752aeb +config_hash: 6b825a08e19dfb747c5dc1766502b789 From eb92abbbecc05cf5dd1e9fc24dd267e9b7fc3251 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 20 Feb 2026 15:15:38 +0000 Subject: [PATCH 3/3] release: 1.9.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/moderation_api/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c3c9552..2cd8f9b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.9.0" + ".": "1.9.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 30c240d..b83516e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.9.1 (2026-02-20) + +Full Changelog: [v1.9.0...v1.9.1](https://github.com/moderation-api/sdk-python/compare/v1.9.0...v1.9.1) + +### Chores + +* update mock server docs ([1967778](https://github.com/moderation-api/sdk-python/commit/1967778c317634f98c29d59b547fd530d347340d)) + ## 1.9.0 (2026-02-20) Full Changelog: [v1.8.0...v1.9.0](https://github.com/moderation-api/sdk-python/compare/v1.8.0...v1.9.0) diff --git a/pyproject.toml b/pyproject.toml index f299dcf..9b4b17f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "moderation_api" -version = "1.9.0" +version = "1.9.1" description = "The official Python library for the moderation-api API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/moderation_api/_version.py b/src/moderation_api/_version.py index da589fa..cf9e4b4 100644 --- a/src/moderation_api/_version.py +++ b/src/moderation_api/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "moderation_api" -__version__ = "1.9.0" # x-release-please-version +__version__ = "1.9.1" # x-release-please-version