From 8e30c35f1a5935b9a69046f1e971a3808c4e28b8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 9 Aug 2025 03:11:58 +0000 Subject: [PATCH 1/3] chore(internal): update comment in script --- scripts/test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test b/scripts/test index 2b87845..dbeda2d 100755 --- a/scripts/test +++ b/scripts/test @@ -43,7 +43,7 @@ elif ! prism_is_running ; then echo -e "To run the server, pass in the path or url of your OpenAPI" echo -e "spec to the prism command:" echo - echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}" + echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" echo exit 1 From ea920d54977d46705b6dcf449e2fcbe7a9af76c8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 02:07:10 +0000 Subject: [PATCH 2/3] chore(internal): codegen related update --- .../deployments/test_predictions.py | 20 ++--- tests/api_resources/models/test_examples.py | 16 ++-- .../api_resources/models/test_predictions.py | 20 ++--- tests/api_resources/models/test_readme.py | 16 ++-- tests/api_resources/models/test_versions.py | 48 ++++++------ tests/api_resources/test_account.py | 12 +-- tests/api_resources/test_collections.py | 28 +++---- tests/api_resources/test_deployments.py | 76 +++++++++---------- tests/api_resources/test_files.py | 68 ++++++++--------- tests/api_resources/test_hardware.py | 12 +-- tests/api_resources/test_models.py | 60 +++++++-------- tests/api_resources/test_predictions.py | 64 ++++++++-------- tests/api_resources/test_trainings.py | 64 ++++++++-------- .../webhooks/default/test_secret.py | 12 +-- 14 files changed, 254 insertions(+), 262 deletions(-) diff --git a/tests/api_resources/deployments/test_predictions.py b/tests/api_resources/deployments/test_predictions.py index f103d7d..c9d95e0 100644 --- a/tests/api_resources/deployments/test_predictions.py +++ b/tests/api_resources/deployments/test_predictions.py @@ -17,7 +17,7 @@ class TestPredictions: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: prediction = client.deployments.predictions.create( @@ -30,7 +30,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Replicate) -> None: prediction = client.deployments.predictions.create( @@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.deployments.predictions.with_raw_response.create( @@ -64,7 +64,7 @@ def test_raw_response_create(self, client: Replicate) -> None: prediction = response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.deployments.predictions.with_streaming_response.create( @@ -83,7 +83,7 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_create(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): @@ -112,7 +112,7 @@ class TestAsyncPredictions: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: prediction = await async_client.deployments.predictions.create( @@ -125,7 +125,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None: prediction = await async_client.deployments.predictions.create( @@ -142,7 +142,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.deployments.predictions.with_raw_response.create( @@ -159,7 +159,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: prediction = await response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.deployments.predictions.with_streaming_response.create( @@ -178,7 +178,7 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_create(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): diff --git a/tests/api_resources/models/test_examples.py b/tests/api_resources/models/test_examples.py index 64ca11e..5d334ff 100644 --- a/tests/api_resources/models/test_examples.py +++ b/tests/api_resources/models/test_examples.py @@ -18,7 +18,7 @@ class TestExamples: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: example = client.models.examples.list( @@ -27,7 +27,7 @@ def test_method_list(self, client: Replicate) -> None: ) assert_matches_type(SyncCursorURLPage[Prediction], example, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.models.examples.with_raw_response.list( @@ -40,7 +40,7 @@ def test_raw_response_list(self, client: Replicate) -> None: example = response.parse() assert_matches_type(SyncCursorURLPage[Prediction], example, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.models.examples.with_streaming_response.list( @@ -55,7 +55,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_list(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -76,7 +76,7 @@ class TestAsyncExamples: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: example = await async_client.models.examples.list( @@ -85,7 +85,7 @@ async def test_method_list(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(AsyncCursorURLPage[Prediction], example, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.models.examples.with_raw_response.list( @@ -98,7 +98,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: example = await response.parse() assert_matches_type(AsyncCursorURLPage[Prediction], example, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.models.examples.with_streaming_response.list( @@ -113,7 +113,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_list(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): diff --git a/tests/api_resources/models/test_predictions.py b/tests/api_resources/models/test_predictions.py index ced4d87..6c7f099 100644 --- a/tests/api_resources/models/test_predictions.py +++ b/tests/api_resources/models/test_predictions.py @@ -17,7 +17,7 @@ class TestPredictions: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: prediction = client.models.predictions.create( @@ -30,7 +30,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Replicate) -> None: prediction = client.models.predictions.create( @@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.models.predictions.with_raw_response.create( @@ -64,7 +64,7 @@ def test_raw_response_create(self, client: Replicate) -> None: prediction = response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.models.predictions.with_streaming_response.create( @@ -83,7 +83,7 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_create(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -112,7 +112,7 @@ class TestAsyncPredictions: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: prediction = await async_client.models.predictions.create( @@ -125,7 +125,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None: prediction = await async_client.models.predictions.create( @@ -142,7 +142,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.models.predictions.with_raw_response.create( @@ -159,7 +159,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: prediction = await response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.models.predictions.with_streaming_response.create( @@ -178,7 +178,7 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_create(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): diff --git a/tests/api_resources/models/test_readme.py b/tests/api_resources/models/test_readme.py index 007d919..3967528 100644 --- a/tests/api_resources/models/test_readme.py +++ b/tests/api_resources/models/test_readme.py @@ -16,7 +16,7 @@ class TestReadme: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: readme = client.models.readme.get( @@ -25,7 +25,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(str, readme, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.models.readme.with_raw_response.get( @@ -38,7 +38,7 @@ def test_raw_response_get(self, client: Replicate) -> None: readme = response.parse() assert_matches_type(str, readme, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.models.readme.with_streaming_response.get( @@ -53,7 +53,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -74,7 +74,7 @@ class TestAsyncReadme: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: readme = await async_client.models.readme.get( @@ -83,7 +83,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(str, readme, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.models.readme.with_raw_response.get( @@ -96,7 +96,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: readme = await response.parse() assert_matches_type(str, readme, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.models.readme.with_streaming_response.get( @@ -111,7 +111,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): diff --git a/tests/api_resources/models/test_versions.py b/tests/api_resources/models/test_versions.py index 82b0c60..1f3d9fb 100644 --- a/tests/api_resources/models/test_versions.py +++ b/tests/api_resources/models/test_versions.py @@ -18,7 +18,7 @@ class TestVersions: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: version = client.models.versions.list( @@ -27,7 +27,7 @@ def test_method_list(self, client: Replicate) -> None: ) assert_matches_type(SyncCursorURLPage[VersionListResponse], version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.models.versions.with_raw_response.list( @@ -40,7 +40,7 @@ def test_raw_response_list(self, client: Replicate) -> None: version = response.parse() assert_matches_type(SyncCursorURLPage[VersionListResponse], version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.models.versions.with_streaming_response.list( @@ -55,7 +55,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_list(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -70,7 +70,7 @@ def test_path_params_list(self, client: Replicate) -> None: model_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete(self, client: Replicate) -> None: version = client.models.versions.delete( @@ -80,7 +80,7 @@ def test_method_delete(self, client: Replicate) -> None: ) assert version is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete(self, client: Replicate) -> None: response = client.models.versions.with_raw_response.delete( @@ -94,7 +94,7 @@ def test_raw_response_delete(self, client: Replicate) -> None: version = response.parse() assert version is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete(self, client: Replicate) -> None: with client.models.versions.with_streaming_response.delete( @@ -110,7 +110,7 @@ def test_streaming_response_delete(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -134,7 +134,7 @@ def test_path_params_delete(self, client: Replicate) -> None: version_id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: version = client.models.versions.get( @@ -144,7 +144,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(VersionGetResponse, version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.models.versions.with_raw_response.get( @@ -158,7 +158,7 @@ def test_raw_response_get(self, client: Replicate) -> None: version = response.parse() assert_matches_type(VersionGetResponse, version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.models.versions.with_streaming_response.get( @@ -174,7 +174,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -204,7 +204,7 @@ class TestAsyncVersions: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: version = await async_client.models.versions.list( @@ -213,7 +213,7 @@ async def test_method_list(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(AsyncCursorURLPage[VersionListResponse], version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.models.versions.with_raw_response.list( @@ -226,7 +226,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: version = await response.parse() assert_matches_type(AsyncCursorURLPage[VersionListResponse], version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.models.versions.with_streaming_response.list( @@ -241,7 +241,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_list(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -256,7 +256,7 @@ async def test_path_params_list(self, async_client: AsyncReplicate) -> None: model_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncReplicate) -> None: version = await async_client.models.versions.delete( @@ -266,7 +266,7 @@ async def test_method_delete(self, async_client: AsyncReplicate) -> None: ) assert version is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: response = await async_client.models.versions.with_raw_response.delete( @@ -280,7 +280,7 @@ async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: version = await response.parse() assert version is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> None: async with async_client.models.versions.with_streaming_response.delete( @@ -296,7 +296,7 @@ async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -320,7 +320,7 @@ async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: version_id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: version = await async_client.models.versions.get( @@ -330,7 +330,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(VersionGetResponse, version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.models.versions.with_raw_response.get( @@ -344,7 +344,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: version = await response.parse() assert_matches_type(VersionGetResponse, version, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.models.versions.with_streaming_response.get( @@ -360,7 +360,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): diff --git a/tests/api_resources/test_account.py b/tests/api_resources/test_account.py index 72f892e..8db901e 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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: account = client.account.get() assert_matches_type(AccountGetResponse, account, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.account.with_raw_response.get() @@ -33,7 +33,7 @@ def test_raw_response_get(self, client: Replicate) -> None: account = response.parse() assert_matches_type(AccountGetResponse, account, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.account.with_streaming_response.get() as response: @@ -51,13 +51,13 @@ class TestAsyncAccount: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: account = await async_client.account.get() assert_matches_type(AccountGetResponse, account, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.account.with_raw_response.get() @@ -67,7 +67,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: account = await response.parse() assert_matches_type(AccountGetResponse, account, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.account.with_streaming_response.get() as response: diff --git a/tests/api_resources/test_collections.py b/tests/api_resources/test_collections.py index 56e88b0..054f2cc 100644 --- a/tests/api_resources/test_collections.py +++ b/tests/api_resources/test_collections.py @@ -18,13 +18,13 @@ class TestCollections: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: collection = client.collections.list() assert_matches_type(SyncCursorURLPage[CollectionListResponse], collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.collections.with_raw_response.list() @@ -34,7 +34,7 @@ def test_raw_response_list(self, client: Replicate) -> None: collection = response.parse() assert_matches_type(SyncCursorURLPage[CollectionListResponse], collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.collections.with_streaming_response.list() as response: @@ -46,7 +46,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: collection = client.collections.get( @@ -54,7 +54,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(CollectionGetResponse, collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.collections.with_raw_response.get( @@ -66,7 +66,7 @@ def test_raw_response_get(self, client: Replicate) -> None: collection = response.parse() assert_matches_type(CollectionGetResponse, collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.collections.with_streaming_response.get( @@ -80,7 +80,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `collection_slug` but received ''"): @@ -94,13 +94,13 @@ class TestAsyncCollections: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: collection = await async_client.collections.list() assert_matches_type(AsyncCursorURLPage[CollectionListResponse], collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.collections.with_raw_response.list() @@ -110,7 +110,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: collection = await response.parse() assert_matches_type(AsyncCursorURLPage[CollectionListResponse], collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.collections.with_streaming_response.list() as response: @@ -122,7 +122,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: collection = await async_client.collections.get( @@ -130,7 +130,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(CollectionGetResponse, collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.collections.with_raw_response.get( @@ -142,7 +142,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: collection = await response.parse() assert_matches_type(CollectionGetResponse, collection, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.collections.with_streaming_response.get( @@ -156,7 +156,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `collection_slug` but received ''"): diff --git a/tests/api_resources/test_deployments.py b/tests/api_resources/test_deployments.py index 25078b7..f2c4f36 100644 --- a/tests/api_resources/test_deployments.py +++ b/tests/api_resources/test_deployments.py @@ -23,7 +23,7 @@ class TestDeployments: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: deployment = client.deployments.create( @@ -36,7 +36,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.deployments.with_raw_response.create( @@ -53,7 +53,7 @@ def test_raw_response_create(self, client: Replicate) -> None: deployment = response.parse() assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.deployments.with_streaming_response.create( @@ -72,7 +72,7 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_update(self, client: Replicate) -> None: deployment = client.deployments.update( @@ -81,7 +81,7 @@ def test_method_update(self, client: Replicate) -> None: ) assert_matches_type(DeploymentUpdateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_update_with_all_params(self, client: Replicate) -> None: deployment = client.deployments.update( @@ -94,7 +94,7 @@ def test_method_update_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(DeploymentUpdateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_update(self, client: Replicate) -> None: response = client.deployments.with_raw_response.update( @@ -107,7 +107,7 @@ def test_raw_response_update(self, client: Replicate) -> None: deployment = response.parse() assert_matches_type(DeploymentUpdateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_update(self, client: Replicate) -> None: with client.deployments.with_streaming_response.update( @@ -122,7 +122,7 @@ def test_streaming_response_update(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_update(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): @@ -137,13 +137,13 @@ def test_path_params_update(self, client: Replicate) -> None: deployment_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: deployment = client.deployments.list() assert_matches_type(SyncCursorURLPage[DeploymentListResponse], deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.deployments.with_raw_response.list() @@ -153,7 +153,7 @@ def test_raw_response_list(self, client: Replicate) -> None: deployment = response.parse() assert_matches_type(SyncCursorURLPage[DeploymentListResponse], deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.deployments.with_streaming_response.list() as response: @@ -165,7 +165,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete(self, client: Replicate) -> None: deployment = client.deployments.delete( @@ -174,7 +174,7 @@ def test_method_delete(self, client: Replicate) -> None: ) assert deployment is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete(self, client: Replicate) -> None: response = client.deployments.with_raw_response.delete( @@ -187,7 +187,7 @@ def test_raw_response_delete(self, client: Replicate) -> None: deployment = response.parse() assert deployment is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete(self, client: Replicate) -> None: with client.deployments.with_streaming_response.delete( @@ -202,7 +202,7 @@ def test_streaming_response_delete(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): @@ -217,7 +217,7 @@ def test_path_params_delete(self, client: Replicate) -> None: deployment_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: deployment = client.deployments.get( @@ -226,7 +226,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(DeploymentGetResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.deployments.with_raw_response.get( @@ -239,7 +239,7 @@ def test_raw_response_get(self, client: Replicate) -> None: deployment = response.parse() assert_matches_type(DeploymentGetResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.deployments.with_streaming_response.get( @@ -254,7 +254,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): @@ -275,7 +275,7 @@ class TestAsyncDeployments: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: deployment = await async_client.deployments.create( @@ -288,7 +288,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.deployments.with_raw_response.create( @@ -305,7 +305,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: deployment = await response.parse() assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.deployments.with_streaming_response.create( @@ -324,7 +324,7 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncReplicate) -> None: deployment = await async_client.deployments.update( @@ -333,7 +333,7 @@ async def test_method_update(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(DeploymentUpdateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncReplicate) -> None: deployment = await async_client.deployments.update( @@ -346,7 +346,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(DeploymentUpdateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncReplicate) -> None: response = await async_client.deployments.with_raw_response.update( @@ -359,7 +359,7 @@ async def test_raw_response_update(self, async_client: AsyncReplicate) -> None: deployment = await response.parse() assert_matches_type(DeploymentUpdateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncReplicate) -> None: async with async_client.deployments.with_streaming_response.update( @@ -374,7 +374,7 @@ async def test_streaming_response_update(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): @@ -389,13 +389,13 @@ async def test_path_params_update(self, async_client: AsyncReplicate) -> None: deployment_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: deployment = await async_client.deployments.list() assert_matches_type(AsyncCursorURLPage[DeploymentListResponse], deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.deployments.with_raw_response.list() @@ -405,7 +405,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: deployment = await response.parse() assert_matches_type(AsyncCursorURLPage[DeploymentListResponse], deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.deployments.with_streaming_response.list() as response: @@ -417,7 +417,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncReplicate) -> None: deployment = await async_client.deployments.delete( @@ -426,7 +426,7 @@ async def test_method_delete(self, async_client: AsyncReplicate) -> None: ) assert deployment is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: response = await async_client.deployments.with_raw_response.delete( @@ -439,7 +439,7 @@ async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: deployment = await response.parse() assert deployment is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> None: async with async_client.deployments.with_streaming_response.delete( @@ -454,7 +454,7 @@ async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): @@ -469,7 +469,7 @@ async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: deployment_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: deployment = await async_client.deployments.get( @@ -478,7 +478,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(DeploymentGetResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.deployments.with_raw_response.get( @@ -491,7 +491,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: deployment = await response.parse() assert_matches_type(DeploymentGetResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.deployments.with_streaming_response.get( @@ -506,7 +506,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `deployment_owner` but received ''"): diff --git a/tests/api_resources/test_files.py b/tests/api_resources/test_files.py index 32a9305..4d735db 100644 --- a/tests/api_resources/test_files.py +++ b/tests/api_resources/test_files.py @@ -30,7 +30,7 @@ class TestFiles: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: file = client.files.create( @@ -38,7 +38,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(FileCreateResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Replicate) -> None: file = client.files.create( @@ -49,7 +49,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(FileCreateResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.files.with_raw_response.create( @@ -61,7 +61,7 @@ def test_raw_response_create(self, client: Replicate) -> None: file = response.parse() assert_matches_type(FileCreateResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.files.with_streaming_response.create( @@ -75,13 +75,13 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: file = client.files.list() assert_matches_type(SyncCursorURLPage[FileListResponse], file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.files.with_raw_response.list() @@ -91,7 +91,7 @@ def test_raw_response_list(self, client: Replicate) -> None: file = response.parse() assert_matches_type(SyncCursorURLPage[FileListResponse], file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.files.with_streaming_response.list() as response: @@ -103,7 +103,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete(self, client: Replicate) -> None: file = client.files.delete( @@ -111,7 +111,7 @@ def test_method_delete(self, client: Replicate) -> None: ) assert file is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete(self, client: Replicate) -> None: response = client.files.with_raw_response.delete( @@ -123,7 +123,7 @@ def test_raw_response_delete(self, client: Replicate) -> None: file = response.parse() assert file is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete(self, client: Replicate) -> None: with client.files.with_streaming_response.delete( @@ -137,7 +137,7 @@ def test_streaming_response_delete(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"): @@ -145,7 +145,6 @@ def test_path_params_delete(self, client: Replicate) -> None: file_id="", ) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_method_download(self, client: Replicate, respx_mock: MockRouter) -> None: @@ -161,7 +160,6 @@ def test_method_download(self, client: Replicate, respx_mock: MockRouter) -> Non assert cast(Any, file.is_closed) is True assert isinstance(file, BinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_raw_response_download(self, client: Replicate, respx_mock: MockRouter) -> None: @@ -179,7 +177,6 @@ def test_raw_response_download(self, client: Replicate, respx_mock: MockRouter) assert file.json() == {"foo": "bar"} assert isinstance(file, BinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_streaming_response_download(self, client: Replicate, respx_mock: MockRouter) -> None: @@ -199,7 +196,6 @@ def test_streaming_response_download(self, client: Replicate, respx_mock: MockRo assert cast(Any, file.is_closed) is True - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_path_params_download(self, client: Replicate) -> None: @@ -211,7 +207,7 @@ def test_path_params_download(self, client: Replicate) -> None: signature="signature", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: file = client.files.get( @@ -219,7 +215,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(FileGetResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.files.with_raw_response.get( @@ -231,7 +227,7 @@ def test_raw_response_get(self, client: Replicate) -> None: file = response.parse() assert_matches_type(FileGetResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.files.with_streaming_response.get( @@ -245,7 +241,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"): @@ -259,7 +255,7 @@ class TestAsyncFiles: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: file = await async_client.files.create( @@ -267,7 +263,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(FileCreateResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None: file = await async_client.files.create( @@ -278,7 +274,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(FileCreateResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.files.with_raw_response.create( @@ -290,7 +286,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: file = await response.parse() assert_matches_type(FileCreateResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.files.with_streaming_response.create( @@ -304,13 +300,13 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: file = await async_client.files.list() assert_matches_type(AsyncCursorURLPage[FileListResponse], file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.files.with_raw_response.list() @@ -320,7 +316,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: file = await response.parse() assert_matches_type(AsyncCursorURLPage[FileListResponse], file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.files.with_streaming_response.list() as response: @@ -332,7 +328,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncReplicate) -> None: file = await async_client.files.delete( @@ -340,7 +336,7 @@ async def test_method_delete(self, async_client: AsyncReplicate) -> None: ) assert file is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: response = await async_client.files.with_raw_response.delete( @@ -352,7 +348,7 @@ async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: file = await response.parse() assert file is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> None: async with async_client.files.with_streaming_response.delete( @@ -366,7 +362,7 @@ async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"): @@ -374,7 +370,6 @@ async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: file_id="", ) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_method_download(self, async_client: AsyncReplicate, respx_mock: MockRouter) -> None: @@ -390,7 +385,6 @@ async def test_method_download(self, async_client: AsyncReplicate, respx_mock: M assert cast(Any, file.is_closed) is True assert isinstance(file, AsyncBinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_raw_response_download(self, async_client: AsyncReplicate, respx_mock: MockRouter) -> None: @@ -408,7 +402,6 @@ async def test_raw_response_download(self, async_client: AsyncReplicate, respx_m assert await file.json() == {"foo": "bar"} assert isinstance(file, AsyncBinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_streaming_response_download(self, async_client: AsyncReplicate, respx_mock: MockRouter) -> None: @@ -428,7 +421,6 @@ async def test_streaming_response_download(self, async_client: AsyncReplicate, r assert cast(Any, file.is_closed) is True - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_path_params_download(self, async_client: AsyncReplicate) -> None: @@ -440,7 +432,7 @@ async def test_path_params_download(self, async_client: AsyncReplicate) -> None: signature="signature", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: file = await async_client.files.get( @@ -448,7 +440,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(FileGetResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.files.with_raw_response.get( @@ -460,7 +452,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: file = await response.parse() assert_matches_type(FileGetResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.files.with_streaming_response.get( @@ -474,7 +466,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `file_id` but received ''"): diff --git a/tests/api_resources/test_hardware.py b/tests/api_resources/test_hardware.py index a04889d..49bae10 100644 --- a/tests/api_resources/test_hardware.py +++ b/tests/api_resources/test_hardware.py @@ -17,13 +17,13 @@ class TestHardware: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: hardware = client.hardware.list() assert_matches_type(HardwareListResponse, hardware, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.hardware.with_raw_response.list() @@ -33,7 +33,7 @@ def test_raw_response_list(self, client: Replicate) -> None: hardware = response.parse() assert_matches_type(HardwareListResponse, hardware, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.hardware.with_streaming_response.list() as response: @@ -51,13 +51,13 @@ class TestAsyncHardware: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: hardware = await async_client.hardware.list() assert_matches_type(HardwareListResponse, hardware, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.hardware.with_raw_response.list() @@ -67,7 +67,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: hardware = await response.parse() assert_matches_type(HardwareListResponse, hardware, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.hardware.with_streaming_response.list() as response: diff --git a/tests/api_resources/test_models.py b/tests/api_resources/test_models.py index 02b98c6..2cd3f1b 100644 --- a/tests/api_resources/test_models.py +++ b/tests/api_resources/test_models.py @@ -23,7 +23,7 @@ class TestModels: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: model = client.models.create( @@ -34,7 +34,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(ModelCreateResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Replicate) -> None: model = client.models.create( @@ -50,7 +50,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(ModelCreateResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.models.with_raw_response.create( @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: Replicate) -> None: model = response.parse() assert_matches_type(ModelCreateResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.models.with_streaming_response.create( @@ -82,13 +82,13 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: model = client.models.list() assert_matches_type(SyncCursorURLPage[ModelListResponse], model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.models.with_raw_response.list() @@ -98,7 +98,7 @@ def test_raw_response_list(self, client: Replicate) -> None: model = response.parse() assert_matches_type(SyncCursorURLPage[ModelListResponse], model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.models.with_streaming_response.list() as response: @@ -110,7 +110,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete(self, client: Replicate) -> None: model = client.models.delete( @@ -119,7 +119,7 @@ def test_method_delete(self, client: Replicate) -> None: ) assert model is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete(self, client: Replicate) -> None: response = client.models.with_raw_response.delete( @@ -132,7 +132,7 @@ def test_raw_response_delete(self, client: Replicate) -> None: model = response.parse() assert model is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete(self, client: Replicate) -> None: with client.models.with_streaming_response.delete( @@ -147,7 +147,7 @@ def test_streaming_response_delete(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -162,7 +162,7 @@ def test_path_params_delete(self, client: Replicate) -> None: model_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: model = client.models.get( @@ -171,7 +171,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(ModelGetResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.models.with_raw_response.get( @@ -184,7 +184,7 @@ def test_raw_response_get(self, client: Replicate) -> None: model = response.parse() assert_matches_type(ModelGetResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.models.with_streaming_response.get( @@ -199,7 +199,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -254,7 +254,7 @@ class TestAsyncModels: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: model = await async_client.models.create( @@ -265,7 +265,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(ModelCreateResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None: model = await async_client.models.create( @@ -281,7 +281,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(ModelCreateResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.models.with_raw_response.create( @@ -296,7 +296,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: model = await response.parse() assert_matches_type(ModelCreateResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.models.with_streaming_response.create( @@ -313,13 +313,13 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: model = await async_client.models.list() assert_matches_type(AsyncCursorURLPage[ModelListResponse], model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.models.with_raw_response.list() @@ -329,7 +329,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: model = await response.parse() assert_matches_type(AsyncCursorURLPage[ModelListResponse], model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.models.with_streaming_response.list() as response: @@ -341,7 +341,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncReplicate) -> None: model = await async_client.models.delete( @@ -350,7 +350,7 @@ async def test_method_delete(self, async_client: AsyncReplicate) -> None: ) assert model is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: response = await async_client.models.with_raw_response.delete( @@ -363,7 +363,7 @@ async def test_raw_response_delete(self, async_client: AsyncReplicate) -> None: model = await response.parse() assert model is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> None: async with async_client.models.with_streaming_response.delete( @@ -378,7 +378,7 @@ async def test_streaming_response_delete(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -393,7 +393,7 @@ async def test_path_params_delete(self, async_client: AsyncReplicate) -> None: model_name="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: model = await async_client.models.get( @@ -402,7 +402,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(ModelGetResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.models.with_raw_response.get( @@ -415,7 +415,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: model = await response.parse() assert_matches_type(ModelGetResponse, model, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.models.with_streaming_response.get( @@ -430,7 +430,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): diff --git a/tests/api_resources/test_predictions.py b/tests/api_resources/test_predictions.py index 145f378..1f0498a 100644 --- a/tests/api_resources/test_predictions.py +++ b/tests/api_resources/test_predictions.py @@ -19,7 +19,7 @@ class TestPredictions: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: prediction = client.predictions.create( @@ -28,7 +28,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Replicate) -> None: prediction = client.predictions.create( @@ -41,7 +41,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.predictions.with_raw_response.create( @@ -54,7 +54,7 @@ def test_raw_response_create(self, client: Replicate) -> None: prediction = response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.predictions.with_streaming_response.create( @@ -69,13 +69,13 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: prediction = client.predictions.list() assert_matches_type(SyncCursorURLPageWithCreatedFilters[Prediction], prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list_with_all_params(self, client: Replicate) -> None: prediction = client.predictions.list( @@ -84,7 +84,7 @@ def test_method_list_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(SyncCursorURLPageWithCreatedFilters[Prediction], prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.predictions.with_raw_response.list() @@ -94,7 +94,7 @@ def test_raw_response_list(self, client: Replicate) -> None: prediction = response.parse() assert_matches_type(SyncCursorURLPageWithCreatedFilters[Prediction], prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.predictions.with_streaming_response.list() as response: @@ -106,7 +106,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_cancel(self, client: Replicate) -> None: prediction = client.predictions.cancel( @@ -114,7 +114,7 @@ def test_method_cancel(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_cancel(self, client: Replicate) -> None: response = client.predictions.with_raw_response.cancel( @@ -126,7 +126,7 @@ def test_raw_response_cancel(self, client: Replicate) -> None: prediction = response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_cancel(self, client: Replicate) -> None: with client.predictions.with_streaming_response.cancel( @@ -140,7 +140,7 @@ def test_streaming_response_cancel(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_cancel(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `prediction_id` but received ''"): @@ -148,7 +148,7 @@ def test_path_params_cancel(self, client: Replicate) -> None: prediction_id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: prediction = client.predictions.get( @@ -156,7 +156,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.predictions.with_raw_response.get( @@ -168,7 +168,7 @@ def test_raw_response_get(self, client: Replicate) -> None: prediction = response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.predictions.with_streaming_response.get( @@ -182,7 +182,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `prediction_id` but received ''"): @@ -196,7 +196,7 @@ class TestAsyncPredictions: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: prediction = await async_client.predictions.create( @@ -205,7 +205,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None: prediction = await async_client.predictions.create( @@ -218,7 +218,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.predictions.with_raw_response.create( @@ -231,7 +231,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: prediction = await response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.predictions.with_streaming_response.create( @@ -246,13 +246,13 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: prediction = await async_client.predictions.list() assert_matches_type(AsyncCursorURLPageWithCreatedFilters[Prediction], prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncReplicate) -> None: prediction = await async_client.predictions.list( @@ -261,7 +261,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncReplicate) - ) assert_matches_type(AsyncCursorURLPageWithCreatedFilters[Prediction], prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.predictions.with_raw_response.list() @@ -271,7 +271,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: prediction = await response.parse() assert_matches_type(AsyncCursorURLPageWithCreatedFilters[Prediction], prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.predictions.with_streaming_response.list() as response: @@ -283,7 +283,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_cancel(self, async_client: AsyncReplicate) -> None: prediction = await async_client.predictions.cancel( @@ -291,7 +291,7 @@ async def test_method_cancel(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_cancel(self, async_client: AsyncReplicate) -> None: response = await async_client.predictions.with_raw_response.cancel( @@ -303,7 +303,7 @@ async def test_raw_response_cancel(self, async_client: AsyncReplicate) -> None: prediction = await response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_cancel(self, async_client: AsyncReplicate) -> None: async with async_client.predictions.with_streaming_response.cancel( @@ -317,7 +317,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_cancel(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `prediction_id` but received ''"): @@ -325,7 +325,7 @@ async def test_path_params_cancel(self, async_client: AsyncReplicate) -> None: prediction_id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: prediction = await async_client.predictions.get( @@ -333,7 +333,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.predictions.with_raw_response.get( @@ -345,7 +345,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: prediction = await response.parse() assert_matches_type(Prediction, prediction, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.predictions.with_streaming_response.get( @@ -359,7 +359,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `prediction_id` but received ''"): diff --git a/tests/api_resources/test_trainings.py b/tests/api_resources/test_trainings.py index 3607d52..64754cc 100644 --- a/tests/api_resources/test_trainings.py +++ b/tests/api_resources/test_trainings.py @@ -23,7 +23,7 @@ class TestTrainings: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Replicate) -> None: training = client.trainings.create( @@ -35,7 +35,7 @@ def test_method_create(self, client: Replicate) -> None: ) assert_matches_type(TrainingCreateResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Replicate) -> None: training = client.trainings.create( @@ -49,7 +49,7 @@ def test_method_create_with_all_params(self, client: Replicate) -> None: ) assert_matches_type(TrainingCreateResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Replicate) -> None: response = client.trainings.with_raw_response.create( @@ -65,7 +65,7 @@ def test_raw_response_create(self, client: Replicate) -> None: training = response.parse() assert_matches_type(TrainingCreateResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Replicate) -> None: with client.trainings.with_streaming_response.create( @@ -83,7 +83,7 @@ def test_streaming_response_create(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_create(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -113,13 +113,13 @@ def test_path_params_create(self, client: Replicate) -> None: input={}, ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Replicate) -> None: training = client.trainings.list() assert_matches_type(SyncCursorURLPage[TrainingListResponse], training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Replicate) -> None: response = client.trainings.with_raw_response.list() @@ -129,7 +129,7 @@ def test_raw_response_list(self, client: Replicate) -> None: training = response.parse() assert_matches_type(SyncCursorURLPage[TrainingListResponse], training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Replicate) -> None: with client.trainings.with_streaming_response.list() as response: @@ -141,7 +141,7 @@ def test_streaming_response_list(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_cancel(self, client: Replicate) -> None: training = client.trainings.cancel( @@ -149,7 +149,7 @@ def test_method_cancel(self, client: Replicate) -> None: ) assert_matches_type(TrainingCancelResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_cancel(self, client: Replicate) -> None: response = client.trainings.with_raw_response.cancel( @@ -161,7 +161,7 @@ def test_raw_response_cancel(self, client: Replicate) -> None: training = response.parse() assert_matches_type(TrainingCancelResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_cancel(self, client: Replicate) -> None: with client.trainings.with_streaming_response.cancel( @@ -175,7 +175,7 @@ def test_streaming_response_cancel(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_cancel(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `training_id` but received ''"): @@ -183,7 +183,7 @@ def test_path_params_cancel(self, client: Replicate) -> None: training_id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: training = client.trainings.get( @@ -191,7 +191,7 @@ def test_method_get(self, client: Replicate) -> None: ) assert_matches_type(TrainingGetResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.trainings.with_raw_response.get( @@ -203,7 +203,7 @@ def test_raw_response_get(self, client: Replicate) -> None: training = response.parse() assert_matches_type(TrainingGetResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.trainings.with_streaming_response.get( @@ -217,7 +217,7 @@ def test_streaming_response_get(self, client: Replicate) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_get(self, client: Replicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `training_id` but received ''"): @@ -231,7 +231,7 @@ class TestAsyncTrainings: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncReplicate) -> None: training = await async_client.trainings.create( @@ -243,7 +243,7 @@ async def test_method_create(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(TrainingCreateResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncReplicate) -> None: training = await async_client.trainings.create( @@ -257,7 +257,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncReplicate) ) assert_matches_type(TrainingCreateResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: response = await async_client.trainings.with_raw_response.create( @@ -273,7 +273,7 @@ async def test_raw_response_create(self, async_client: AsyncReplicate) -> None: training = await response.parse() assert_matches_type(TrainingCreateResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncReplicate) -> None: async with async_client.trainings.with_streaming_response.create( @@ -291,7 +291,7 @@ async def test_streaming_response_create(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_create(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `model_owner` but received ''"): @@ -321,13 +321,13 @@ async def test_path_params_create(self, async_client: AsyncReplicate) -> None: input={}, ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncReplicate) -> None: training = await async_client.trainings.list() assert_matches_type(AsyncCursorURLPage[TrainingListResponse], training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: response = await async_client.trainings.with_raw_response.list() @@ -337,7 +337,7 @@ async def test_raw_response_list(self, async_client: AsyncReplicate) -> None: training = await response.parse() assert_matches_type(AsyncCursorURLPage[TrainingListResponse], training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncReplicate) -> None: async with async_client.trainings.with_streaming_response.list() as response: @@ -349,7 +349,7 @@ async def test_streaming_response_list(self, async_client: AsyncReplicate) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_cancel(self, async_client: AsyncReplicate) -> None: training = await async_client.trainings.cancel( @@ -357,7 +357,7 @@ async def test_method_cancel(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(TrainingCancelResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_cancel(self, async_client: AsyncReplicate) -> None: response = await async_client.trainings.with_raw_response.cancel( @@ -369,7 +369,7 @@ async def test_raw_response_cancel(self, async_client: AsyncReplicate) -> None: training = await response.parse() assert_matches_type(TrainingCancelResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_cancel(self, async_client: AsyncReplicate) -> None: async with async_client.trainings.with_streaming_response.cancel( @@ -383,7 +383,7 @@ async def test_streaming_response_cancel(self, async_client: AsyncReplicate) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_cancel(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `training_id` but received ''"): @@ -391,7 +391,7 @@ async def test_path_params_cancel(self, async_client: AsyncReplicate) -> None: training_id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: training = await async_client.trainings.get( @@ -399,7 +399,7 @@ async def test_method_get(self, async_client: AsyncReplicate) -> None: ) assert_matches_type(TrainingGetResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.trainings.with_raw_response.get( @@ -411,7 +411,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: training = await response.parse() assert_matches_type(TrainingGetResponse, training, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.trainings.with_streaming_response.get( @@ -425,7 +425,7 @@ async def test_streaming_response_get(self, async_client: AsyncReplicate) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_get(self, async_client: AsyncReplicate) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `training_id` but received ''"): diff --git a/tests/api_resources/webhooks/default/test_secret.py b/tests/api_resources/webhooks/default/test_secret.py index 047d7d0..9c82812 100644 --- a/tests/api_resources/webhooks/default/test_secret.py +++ b/tests/api_resources/webhooks/default/test_secret.py @@ -17,13 +17,13 @@ class TestSecret: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Replicate) -> None: secret = client.webhooks.default.secret.get() assert_matches_type(SecretGetResponse, secret, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Replicate) -> None: response = client.webhooks.default.secret.with_raw_response.get() @@ -33,7 +33,7 @@ def test_raw_response_get(self, client: Replicate) -> None: secret = response.parse() assert_matches_type(SecretGetResponse, secret, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Replicate) -> None: with client.webhooks.default.secret.with_streaming_response.get() as response: @@ -51,13 +51,13 @@ class TestAsyncSecret: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncReplicate) -> None: secret = await async_client.webhooks.default.secret.get() assert_matches_type(SecretGetResponse, secret, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: response = await async_client.webhooks.default.secret.with_raw_response.get() @@ -67,7 +67,7 @@ async def test_raw_response_get(self, async_client: AsyncReplicate) -> None: secret = await response.parse() assert_matches_type(SecretGetResponse, secret, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncReplicate) -> None: async with async_client.webhooks.default.secret.with_streaming_response.get() as response: From c0d1cf08084db306f240e1835d8536cfc41253f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 02:07:28 +0000 Subject: [PATCH 3/3] release: 2.0.0-alpha.17 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/replicate/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 360f96e..4d79ad4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0-alpha.16" + ".": "2.0.0-alpha.17" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d739d01..97a32d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.0.0-alpha.17 (2025-08-12) + +Full Changelog: [v2.0.0-alpha.16...v2.0.0-alpha.17](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) + +### Chores + +* **internal:** codegen related update ([ea920d5](https://github.com/replicate/replicate-python-stainless/commit/ea920d54977d46705b6dcf449e2fcbe7a9af76c8)) +* **internal:** update comment in script ([8e30c35](https://github.com/replicate/replicate-python-stainless/commit/8e30c35f1a5935b9a69046f1e971a3808c4e28b8)) + ## 2.0.0-alpha.16 (2025-08-09) Full Changelog: [v2.0.0-alpha.15...v2.0.0-alpha.16](https://github.com/replicate/replicate-python-stainless/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) diff --git a/pyproject.toml b/pyproject.toml index 0140881..acd744e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "replicate" -version = "2.0.0-alpha.16" +version = "2.0.0-alpha.17" description = "The official Python library for the replicate API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/replicate/_version.py b/src/replicate/_version.py index 72d4956..c8026f2 100644 --- a/src/replicate/_version.py +++ b/src/replicate/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "replicate" -__version__ = "2.0.0-alpha.16" # x-release-please-version +__version__ = "2.0.0-alpha.17" # x-release-please-version