diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6538ca91..2b28d6ec 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.8.0" + ".": "0.8.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 85a351b6..30572246 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 44 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-433bfd8c688a6b6d2d4f964bb59121d692798f4e2bb6cb47f6110c4f0e1f638d.yml -openapi_spec_hash: 5378295d401c8c1152c1946cc7dbd69f -config_hash: 43a0daa5b05d44a1620e3da0ea6f4fdc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-0d435644cb7d85d5943a650d98c0424e95137576737f29ecf9be89c586803fdb.yml +openapi_spec_hash: 7e317f507d30bcfec89935fab61064c7 +config_hash: d475a61f5b59375bf562f85f19b80409 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b10eda3..e38415ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.8.1 (2026-02-23) + +Full Changelog: [v0.8.0...v0.8.1](https://github.com/sentdm/sent-dm-python/compare/v0.8.0...v0.8.1) + +### Chores + +* configure new SDK language ([3bd56d9](https://github.com/sentdm/sent-dm-python/commit/3bd56d974bda24dc539d06bec52cb7a3192cbc49)) +* **internal:** remove mock server code ([7010159](https://github.com/sentdm/sent-dm-python/commit/70101591e8a05615023b762cdf7a6d9cceb97c05)) +* update mock server docs ([bb7e58f](https://github.com/sentdm/sent-dm-python/commit/bb7e58f1dc41d23f774dcc62b026f7bea07219c4)) + ## 0.8.0 (2026-02-18) Full Changelog: [v0.7.0...v0.8.0](https://github.com/sentdm/sent-dm-python/compare/v0.7.0...v0.8.0) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b08632a8..b66af0d6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl ## Running tests -Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. - -```sh -# you will need npm installed -$ npx prism mock path/to/your/openapi.yml -``` - ```sh $ ./scripts/test ``` diff --git a/README.md b/README.md index 85abb8f2..b6919f58 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,15 @@ and offers both synchronous and asynchronous clients powered by [httpx](https:// It is generated with [Stainless](https://www.stainless.com/). +## MCP Server + +Use the Sent Dm MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application. + +[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40sentdm%2Fsentdm-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBzZW50ZG0vc2VudGRtLW1jcCJdLCJlbnYiOnsiU0VOVF9ETV9BUElfS0VZIjoiTXkgQVBJIEtleSJ9fQ) +[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40sentdm%2Fsentdm-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40sentdm%2Fsentdm-mcp%22%5D%2C%22env%22%3A%7B%22SENT_DM_API_KEY%22%3A%22My%20API%20Key%22%7D%7D) + +> Note: You may need to set environment variables in your MCP client. + ## Documentation The REST API documentation can be found on [docs.sent.dm](https://docs.sent.dm). The full API of this library can be found in [api.md](api.md). diff --git a/pyproject.toml b/pyproject.toml index 68fdb16e..a98c4f9f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sentdm" -version = "0.8.0" +version = "0.8.1" description = "The official Python library for the sent-dm API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/mock b/scripts/mock deleted file mode 100755 index 0b28f6ea..00000000 --- a/scripts/mock +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -e - -cd "$(dirname "$0")/.." - -if [[ -n "$1" && "$1" != '--'* ]]; then - URL="$1" - shift -else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" - exit 1 -fi - -echo "==> Starting mock server with URL ${URL}" - -# Run prism mock on the given spec -if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - - # Wait for server to come online - echo -n "Waiting for server" - while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do - echo -n "." - sleep 0.1 - done - - if grep -q "✖ fatal" ".prism.log"; then - cat .prism.log - exit 1 - fi - - echo -else - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" -fi diff --git a/scripts/test b/scripts/test index b56970b7..fe50ebb1 100755 --- a/scripts/test +++ b/scripts/test @@ -4,53 +4,7 @@ set -e cd "$(dirname "$0")/.." -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -NC='\033[0m' # No Color -function prism_is_running() { - curl --silent "http://localhost:4010" >/dev/null 2>&1 -} - -kill_server_on_port() { - pids=$(lsof -t -i tcp:"$1" || echo "") - if [ "$pids" != "" ]; then - kill "$pids" - echo "Stopped $pids." - fi -} - -function is_overriding_api_base_url() { - [ -n "$TEST_API_BASE_URL" ] -} - -if ! is_overriding_api_base_url && ! prism_is_running ; then - # When we exit this script, make sure to kill the background mock server process - trap 'kill_server_on_port 4010' EXIT - - # Start the dev server - ./scripts/mock --daemon -fi - -if is_overriding_api_base_url ; then - echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}" - echo -elif ! prism_is_running ; then - echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server" - echo -e "running against your OpenAPI spec." - echo - 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=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" - echo - - exit 1 -else - echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}" - echo -fi export DEFER_PYDANTIC_BUILD=false diff --git a/src/sent_dm/_version.py b/src/sent_dm/_version.py index 7bbe01de..370d30e0 100644 --- a/src/sent_dm/_version.py +++ b/src/sent_dm/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "sent_dm" -__version__ = "0.8.0" # x-release-please-version +__version__ = "0.8.1" # x-release-please-version diff --git a/tests/api_resources/brands/test_campaigns.py b/tests/api_resources/brands/test_campaigns.py index 6c1b24d0..dd891730 100644 --- a/tests/api_resources/brands/test_campaigns.py +++ b/tests/api_resources/brands/test_campaigns.py @@ -20,7 +20,7 @@ class TestCampaigns: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: SentDm) -> None: campaign = client.brands.campaigns.create( @@ -42,7 +42,7 @@ def test_method_create(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: SentDm) -> None: campaign = client.brands.campaigns.create( @@ -75,7 +75,7 @@ def test_method_create_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: SentDm) -> None: response = client.brands.campaigns.with_raw_response.create( @@ -101,7 +101,7 @@ def test_raw_response_create(self, client: SentDm) -> None: campaign = response.parse() assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: SentDm) -> None: with client.brands.campaigns.with_streaming_response.create( @@ -129,7 +129,7 @@ def test_streaming_response_create(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_create(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -151,7 +151,7 @@ def test_path_params_create(self, client: SentDm) -> None: }, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: SentDm) -> None: campaign = client.brands.campaigns.update( @@ -174,7 +174,7 @@ def test_method_update(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: SentDm) -> None: campaign = client.brands.campaigns.update( @@ -208,7 +208,7 @@ def test_method_update_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: SentDm) -> None: response = client.brands.campaigns.with_raw_response.update( @@ -235,7 +235,7 @@ def test_raw_response_update(self, client: SentDm) -> None: campaign = response.parse() assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: SentDm) -> None: with client.brands.campaigns.with_streaming_response.update( @@ -264,7 +264,7 @@ def test_streaming_response_update(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -307,7 +307,7 @@ def test_path_params_update(self, client: SentDm) -> None: }, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: campaign = client.brands.campaigns.list( @@ -315,7 +315,7 @@ def test_method_list(self, client: SentDm) -> None: ) assert_matches_type(CampaignListResponse, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.brands.campaigns.with_raw_response.list( @@ -327,7 +327,7 @@ def test_raw_response_list(self, client: SentDm) -> None: campaign = response.parse() assert_matches_type(CampaignListResponse, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.brands.campaigns.with_streaming_response.list( @@ -341,7 +341,7 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_list(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -349,7 +349,7 @@ def test_path_params_list(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: SentDm) -> None: campaign = client.brands.campaigns.delete( @@ -359,7 +359,7 @@ def test_method_delete(self, client: SentDm) -> None: ) assert campaign is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_with_all_params(self, client: SentDm) -> None: campaign = client.brands.campaigns.delete( @@ -369,7 +369,7 @@ def test_method_delete_with_all_params(self, client: SentDm) -> None: ) assert campaign is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: SentDm) -> None: response = client.brands.campaigns.with_raw_response.delete( @@ -383,7 +383,7 @@ def test_raw_response_delete(self, client: SentDm) -> None: campaign = response.parse() assert campaign is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: SentDm) -> None: with client.brands.campaigns.with_streaming_response.delete( @@ -399,7 +399,7 @@ def test_streaming_response_delete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -422,7 +422,7 @@ class TestAsyncCampaigns: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.create( @@ -444,7 +444,7 @@ async def test_method_create(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.create( @@ -477,7 +477,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.campaigns.with_raw_response.create( @@ -503,7 +503,7 @@ async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: campaign = await response.parse() assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncSentDm) -> None: async with async_client.brands.campaigns.with_streaming_response.create( @@ -531,7 +531,7 @@ async def test_streaming_response_create(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_create(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -553,7 +553,7 @@ async def test_path_params_create(self, async_client: AsyncSentDm) -> None: }, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.update( @@ -576,7 +576,7 @@ async def test_method_update(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.update( @@ -610,7 +610,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.campaigns.with_raw_response.update( @@ -637,7 +637,7 @@ async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: campaign = await response.parse() assert_matches_type(APIResponseTcrCampaignWithUseCases, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncSentDm) -> None: async with async_client.brands.campaigns.with_streaming_response.update( @@ -666,7 +666,7 @@ async def test_streaming_response_update(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -709,7 +709,7 @@ async def test_path_params_update(self, async_client: AsyncSentDm) -> None: }, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.list( @@ -717,7 +717,7 @@ async def test_method_list(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(CampaignListResponse, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.campaigns.with_raw_response.list( @@ -729,7 +729,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: campaign = await response.parse() assert_matches_type(CampaignListResponse, campaign, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.brands.campaigns.with_streaming_response.list( @@ -743,7 +743,7 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_list(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -751,7 +751,7 @@ async def test_path_params_list(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.delete( @@ -761,7 +761,7 @@ async def test_method_delete(self, async_client: AsyncSentDm) -> None: ) assert campaign is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> None: campaign = await async_client.brands.campaigns.delete( @@ -771,7 +771,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> ) assert campaign is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.campaigns.with_raw_response.delete( @@ -785,7 +785,7 @@ async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: campaign = await response.parse() assert campaign is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> None: async with async_client.brands.campaigns.with_streaming_response.delete( @@ -801,7 +801,7 @@ async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): diff --git a/tests/api_resources/test_brands.py b/tests/api_resources/test_brands.py index 0ee7e474..6b17fd45 100644 --- a/tests/api_resources/test_brands.py +++ b/tests/api_resources/test_brands.py @@ -20,7 +20,7 @@ class TestBrands: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: SentDm) -> None: brand = client.brands.create( @@ -32,7 +32,7 @@ def test_method_create(self, client: SentDm) -> None: ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: SentDm) -> None: brand = client.brands.create( @@ -74,7 +74,7 @@ def test_method_create_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: SentDm) -> None: response = client.brands.with_raw_response.create( @@ -90,7 +90,7 @@ def test_raw_response_create(self, client: SentDm) -> None: brand = response.parse() assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: SentDm) -> None: with client.brands.with_streaming_response.create( @@ -108,7 +108,7 @@ def test_streaming_response_create(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: SentDm) -> None: brand = client.brands.update( @@ -121,7 +121,7 @@ def test_method_update(self, client: SentDm) -> None: ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: SentDm) -> None: brand = client.brands.update( @@ -164,7 +164,7 @@ def test_method_update_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: SentDm) -> None: response = client.brands.with_raw_response.update( @@ -181,7 +181,7 @@ def test_raw_response_update(self, client: SentDm) -> None: brand = response.parse() assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: SentDm) -> None: with client.brands.with_streaming_response.update( @@ -200,7 +200,7 @@ def test_streaming_response_update(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -213,13 +213,13 @@ def test_path_params_update(self, client: SentDm) -> None: }, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: brand = client.brands.list() assert_matches_type(BrandListResponse, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.brands.with_raw_response.list() @@ -229,7 +229,7 @@ def test_raw_response_list(self, client: SentDm) -> None: brand = response.parse() assert_matches_type(BrandListResponse, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.brands.with_streaming_response.list() as response: @@ -241,7 +241,7 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: SentDm) -> None: brand = client.brands.delete( @@ -250,7 +250,7 @@ def test_method_delete(self, client: SentDm) -> None: ) assert brand is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_with_all_params(self, client: SentDm) -> None: brand = client.brands.delete( @@ -259,7 +259,7 @@ def test_method_delete_with_all_params(self, client: SentDm) -> None: ) assert brand is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: SentDm) -> None: response = client.brands.with_raw_response.delete( @@ -272,7 +272,7 @@ def test_raw_response_delete(self, client: SentDm) -> None: brand = response.parse() assert brand is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: SentDm) -> None: with client.brands.with_streaming_response.delete( @@ -287,7 +287,7 @@ def test_streaming_response_delete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -302,7 +302,7 @@ class TestAsyncBrands: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.create( @@ -314,7 +314,7 @@ async def test_method_create(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.create( @@ -356,7 +356,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.with_raw_response.create( @@ -372,7 +372,7 @@ async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: brand = await response.parse() assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncSentDm) -> None: async with async_client.brands.with_streaming_response.create( @@ -390,7 +390,7 @@ async def test_streaming_response_create(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.update( @@ -403,7 +403,7 @@ async def test_method_update(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.update( @@ -446,7 +446,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.with_raw_response.update( @@ -463,7 +463,7 @@ async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: brand = await response.parse() assert_matches_type(APIResponseBrandWithKYC, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncSentDm) -> None: async with async_client.brands.with_streaming_response.update( @@ -482,7 +482,7 @@ async def test_streaming_response_update(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): @@ -495,13 +495,13 @@ async def test_path_params_update(self, async_client: AsyncSentDm) -> None: }, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.list() assert_matches_type(BrandListResponse, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.with_raw_response.list() @@ -511,7 +511,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: brand = await response.parse() assert_matches_type(BrandListResponse, brand, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.brands.with_streaming_response.list() as response: @@ -523,7 +523,7 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.delete( @@ -532,7 +532,7 @@ async def test_method_delete(self, async_client: AsyncSentDm) -> None: ) assert brand is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> None: brand = await async_client.brands.delete( @@ -541,7 +541,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> ) assert brand is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: response = await async_client.brands.with_raw_response.delete( @@ -554,7 +554,7 @@ async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: brand = await response.parse() assert brand is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> None: async with async_client.brands.with_streaming_response.delete( @@ -569,7 +569,7 @@ async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `brand_id` but received ''"): diff --git a/tests/api_resources/test_contacts.py b/tests/api_resources/test_contacts.py index a4107945..5a81eb6d 100644 --- a/tests/api_resources/test_contacts.py +++ b/tests/api_resources/test_contacts.py @@ -20,13 +20,13 @@ class TestContacts: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: SentDm) -> None: contact = client.contacts.create() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: SentDm) -> None: contact = client.contacts.create( @@ -36,7 +36,7 @@ def test_method_create_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: SentDm) -> None: response = client.contacts.with_raw_response.create() @@ -46,7 +46,7 @@ def test_raw_response_create(self, client: SentDm) -> None: contact = response.parse() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: SentDm) -> None: with client.contacts.with_streaming_response.create() as response: @@ -58,7 +58,7 @@ def test_streaming_response_create(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: SentDm) -> None: contact = client.contacts.retrieve( @@ -66,7 +66,7 @@ def test_method_retrieve(self, client: SentDm) -> None: ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: SentDm) -> None: response = client.contacts.with_raw_response.retrieve( @@ -78,7 +78,7 @@ def test_raw_response_retrieve(self, client: SentDm) -> None: contact = response.parse() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: SentDm) -> None: with client.contacts.with_streaming_response.retrieve( @@ -92,7 +92,7 @@ def test_streaming_response_retrieve(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -100,7 +100,7 @@ def test_path_params_retrieve(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: SentDm) -> None: contact = client.contacts.update( @@ -108,7 +108,7 @@ def test_method_update(self, client: SentDm) -> None: ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: SentDm) -> None: contact = client.contacts.update( @@ -120,7 +120,7 @@ def test_method_update_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: SentDm) -> None: response = client.contacts.with_raw_response.update( @@ -132,7 +132,7 @@ def test_raw_response_update(self, client: SentDm) -> None: contact = response.parse() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: SentDm) -> None: with client.contacts.with_streaming_response.update( @@ -146,7 +146,7 @@ def test_streaming_response_update(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -154,7 +154,7 @@ def test_path_params_update(self, client: SentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: contact = client.contacts.list( @@ -163,7 +163,7 @@ def test_method_list(self, client: SentDm) -> None: ) assert_matches_type(ContactListResponse, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_with_all_params(self, client: SentDm) -> None: contact = client.contacts.list( @@ -175,7 +175,7 @@ def test_method_list_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(ContactListResponse, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.contacts.with_raw_response.list( @@ -188,7 +188,7 @@ def test_raw_response_list(self, client: SentDm) -> None: contact = response.parse() assert_matches_type(ContactListResponse, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.contacts.with_streaming_response.list( @@ -203,7 +203,7 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: SentDm) -> None: contact = client.contacts.delete( @@ -212,7 +212,7 @@ def test_method_delete(self, client: SentDm) -> None: ) assert contact is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_with_all_params(self, client: SentDm) -> None: contact = client.contacts.delete( @@ -221,7 +221,7 @@ def test_method_delete_with_all_params(self, client: SentDm) -> None: ) assert contact is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: SentDm) -> None: response = client.contacts.with_raw_response.delete( @@ -234,7 +234,7 @@ def test_raw_response_delete(self, client: SentDm) -> None: contact = response.parse() assert contact is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: SentDm) -> None: with client.contacts.with_streaming_response.delete( @@ -249,7 +249,7 @@ def test_streaming_response_delete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -264,13 +264,13 @@ class TestAsyncContacts: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.create() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.create( @@ -280,7 +280,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: response = await async_client.contacts.with_raw_response.create() @@ -290,7 +290,7 @@ async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: contact = await response.parse() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncSentDm) -> None: async with async_client.contacts.with_streaming_response.create() as response: @@ -302,7 +302,7 @@ async def test_streaming_response_create(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.retrieve( @@ -310,7 +310,7 @@ async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: response = await async_client.contacts.with_raw_response.retrieve( @@ -322,7 +322,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: contact = await response.parse() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> None: async with async_client.contacts.with_streaming_response.retrieve( @@ -336,7 +336,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -344,7 +344,7 @@ async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.update( @@ -352,7 +352,7 @@ async def test_method_update(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.update( @@ -364,7 +364,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: response = await async_client.contacts.with_raw_response.update( @@ -376,7 +376,7 @@ async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: contact = await response.parse() assert_matches_type(APIResponseContact, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncSentDm) -> None: async with async_client.contacts.with_streaming_response.update( @@ -390,7 +390,7 @@ async def test_streaming_response_update(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -398,7 +398,7 @@ async def test_path_params_update(self, async_client: AsyncSentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.list( @@ -407,7 +407,7 @@ async def test_method_list(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(ContactListResponse, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.list( @@ -419,7 +419,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncSentDm) -> N ) assert_matches_type(ContactListResponse, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.contacts.with_raw_response.list( @@ -432,7 +432,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: contact = await response.parse() assert_matches_type(ContactListResponse, contact, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.contacts.with_streaming_response.list( @@ -447,7 +447,7 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.delete( @@ -456,7 +456,7 @@ async def test_method_delete(self, async_client: AsyncSentDm) -> None: ) assert contact is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> None: contact = await async_client.contacts.delete( @@ -465,7 +465,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> ) assert contact is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: response = await async_client.contacts.with_raw_response.delete( @@ -478,7 +478,7 @@ async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: contact = await response.parse() assert contact is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> None: async with async_client.contacts.with_streaming_response.delete( @@ -493,7 +493,7 @@ async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_lookup.py b/tests/api_resources/test_lookup.py index 6b1e41ae..112ce0a1 100644 --- a/tests/api_resources/test_lookup.py +++ b/tests/api_resources/test_lookup.py @@ -17,7 +17,7 @@ class TestLookup: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve_phone_info(self, client: SentDm) -> None: lookup = client.lookup.retrieve_phone_info( @@ -25,7 +25,7 @@ def test_method_retrieve_phone_info(self, client: SentDm) -> None: ) assert_matches_type(LookupRetrievePhoneInfoResponse, lookup, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve_phone_info(self, client: SentDm) -> None: response = client.lookup.with_raw_response.retrieve_phone_info( @@ -37,7 +37,7 @@ def test_raw_response_retrieve_phone_info(self, client: SentDm) -> None: lookup = response.parse() assert_matches_type(LookupRetrievePhoneInfoResponse, lookup, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve_phone_info(self, client: SentDm) -> None: with client.lookup.with_streaming_response.retrieve_phone_info( @@ -51,7 +51,7 @@ def test_streaming_response_retrieve_phone_info(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve_phone_info(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `phone_number` but received ''"): @@ -65,7 +65,7 @@ class TestAsyncLookup: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve_phone_info(self, async_client: AsyncSentDm) -> None: lookup = await async_client.lookup.retrieve_phone_info( @@ -73,7 +73,7 @@ async def test_method_retrieve_phone_info(self, async_client: AsyncSentDm) -> No ) assert_matches_type(LookupRetrievePhoneInfoResponse, lookup, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve_phone_info(self, async_client: AsyncSentDm) -> None: response = await async_client.lookup.with_raw_response.retrieve_phone_info( @@ -85,7 +85,7 @@ async def test_raw_response_retrieve_phone_info(self, async_client: AsyncSentDm) lookup = await response.parse() assert_matches_type(LookupRetrievePhoneInfoResponse, lookup, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve_phone_info(self, async_client: AsyncSentDm) -> None: async with async_client.lookup.with_streaming_response.retrieve_phone_info( @@ -99,7 +99,7 @@ async def test_streaming_response_retrieve_phone_info(self, async_client: AsyncS assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve_phone_info(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `phone_number` but received ''"): diff --git a/tests/api_resources/test_me.py b/tests/api_resources/test_me.py index ed460270..0a4d9b0a 100644 --- a/tests/api_resources/test_me.py +++ b/tests/api_resources/test_me.py @@ -17,13 +17,13 @@ class TestMe: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: SentDm) -> None: me = client.me.retrieve() assert_matches_type(MeRetrieveResponse, me, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: SentDm) -> None: response = client.me.with_raw_response.retrieve() @@ -33,7 +33,7 @@ def test_raw_response_retrieve(self, client: SentDm) -> None: me = response.parse() assert_matches_type(MeRetrieveResponse, me, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: SentDm) -> None: with client.me.with_streaming_response.retrieve() as response: @@ -51,13 +51,13 @@ class TestAsyncMe: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: me = await async_client.me.retrieve() assert_matches_type(MeRetrieveResponse, me, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: response = await async_client.me.with_raw_response.retrieve() @@ -67,7 +67,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: me = await response.parse() assert_matches_type(MeRetrieveResponse, me, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> None: async with async_client.me.with_streaming_response.retrieve() as response: diff --git a/tests/api_resources/test_messages.py b/tests/api_resources/test_messages.py index 70246710..1e8c4bb6 100644 --- a/tests/api_resources/test_messages.py +++ b/tests/api_resources/test_messages.py @@ -21,7 +21,7 @@ class TestMessages: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve_activities(self, client: SentDm) -> None: message = client.messages.retrieve_activities( @@ -29,7 +29,7 @@ def test_method_retrieve_activities(self, client: SentDm) -> None: ) assert_matches_type(MessageRetrieveActivitiesResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve_activities(self, client: SentDm) -> None: response = client.messages.with_raw_response.retrieve_activities( @@ -41,7 +41,7 @@ def test_raw_response_retrieve_activities(self, client: SentDm) -> None: message = response.parse() assert_matches_type(MessageRetrieveActivitiesResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve_activities(self, client: SentDm) -> None: with client.messages.with_streaming_response.retrieve_activities( @@ -55,7 +55,7 @@ def test_streaming_response_retrieve_activities(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve_activities(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -63,7 +63,7 @@ def test_path_params_retrieve_activities(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve_status(self, client: SentDm) -> None: message = client.messages.retrieve_status( @@ -71,7 +71,7 @@ def test_method_retrieve_status(self, client: SentDm) -> None: ) assert_matches_type(MessageRetrieveStatusResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve_status(self, client: SentDm) -> None: response = client.messages.with_raw_response.retrieve_status( @@ -83,7 +83,7 @@ def test_raw_response_retrieve_status(self, client: SentDm) -> None: message = response.parse() assert_matches_type(MessageRetrieveStatusResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve_status(self, client: SentDm) -> None: with client.messages.with_streaming_response.retrieve_status( @@ -97,7 +97,7 @@ def test_streaming_response_retrieve_status(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve_status(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -105,13 +105,13 @@ def test_path_params_retrieve_status(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_send(self, client: SentDm) -> None: message = client.messages.send() assert_matches_type(MessageSendResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_send_with_all_params(self, client: SentDm) -> None: message = client.messages.send( @@ -130,7 +130,7 @@ def test_method_send_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(MessageSendResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_send(self, client: SentDm) -> None: response = client.messages.with_raw_response.send() @@ -140,7 +140,7 @@ def test_raw_response_send(self, client: SentDm) -> None: message = response.parse() assert_matches_type(MessageSendResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_send(self, client: SentDm) -> None: with client.messages.with_streaming_response.send() as response: @@ -158,7 +158,7 @@ class TestAsyncMessages: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve_activities(self, async_client: AsyncSentDm) -> None: message = await async_client.messages.retrieve_activities( @@ -166,7 +166,7 @@ async def test_method_retrieve_activities(self, async_client: AsyncSentDm) -> No ) assert_matches_type(MessageRetrieveActivitiesResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve_activities(self, async_client: AsyncSentDm) -> None: response = await async_client.messages.with_raw_response.retrieve_activities( @@ -178,7 +178,7 @@ async def test_raw_response_retrieve_activities(self, async_client: AsyncSentDm) message = await response.parse() assert_matches_type(MessageRetrieveActivitiesResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve_activities(self, async_client: AsyncSentDm) -> None: async with async_client.messages.with_streaming_response.retrieve_activities( @@ -192,7 +192,7 @@ async def test_streaming_response_retrieve_activities(self, async_client: AsyncS assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve_activities(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -200,7 +200,7 @@ async def test_path_params_retrieve_activities(self, async_client: AsyncSentDm) "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve_status(self, async_client: AsyncSentDm) -> None: message = await async_client.messages.retrieve_status( @@ -208,7 +208,7 @@ async def test_method_retrieve_status(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(MessageRetrieveStatusResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve_status(self, async_client: AsyncSentDm) -> None: response = await async_client.messages.with_raw_response.retrieve_status( @@ -220,7 +220,7 @@ async def test_raw_response_retrieve_status(self, async_client: AsyncSentDm) -> message = await response.parse() assert_matches_type(MessageRetrieveStatusResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve_status(self, async_client: AsyncSentDm) -> None: async with async_client.messages.with_streaming_response.retrieve_status( @@ -234,7 +234,7 @@ async def test_streaming_response_retrieve_status(self, async_client: AsyncSentD assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve_status(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -242,13 +242,13 @@ async def test_path_params_retrieve_status(self, async_client: AsyncSentDm) -> N "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_send(self, async_client: AsyncSentDm) -> None: message = await async_client.messages.send() assert_matches_type(MessageSendResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_send_with_all_params(self, async_client: AsyncSentDm) -> None: message = await async_client.messages.send( @@ -267,7 +267,7 @@ async def test_method_send_with_all_params(self, async_client: AsyncSentDm) -> N ) assert_matches_type(MessageSendResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_send(self, async_client: AsyncSentDm) -> None: response = await async_client.messages.with_raw_response.send() @@ -277,7 +277,7 @@ async def test_raw_response_send(self, async_client: AsyncSentDm) -> None: message = await response.parse() assert_matches_type(MessageSendResponse, message, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_send(self, async_client: AsyncSentDm) -> None: async with async_client.messages.with_streaming_response.send() as response: diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 4b7471f4..15a4fd28 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -20,13 +20,13 @@ class TestProfiles: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: SentDm) -> None: profile = client.profiles.create() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: SentDm) -> None: profile = client.profiles.create( @@ -46,7 +46,7 @@ def test_method_create_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: SentDm) -> None: response = client.profiles.with_raw_response.create() @@ -56,7 +56,7 @@ def test_raw_response_create(self, client: SentDm) -> None: profile = response.parse() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: SentDm) -> None: with client.profiles.with_streaming_response.create() as response: @@ -68,7 +68,7 @@ def test_streaming_response_create(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: SentDm) -> None: profile = client.profiles.retrieve( @@ -76,7 +76,7 @@ def test_method_retrieve(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: SentDm) -> None: response = client.profiles.with_raw_response.retrieve( @@ -88,7 +88,7 @@ def test_raw_response_retrieve(self, client: SentDm) -> None: profile = response.parse() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: SentDm) -> None: with client.profiles.with_streaming_response.retrieve( @@ -102,7 +102,7 @@ def test_streaming_response_retrieve(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `profile_id` but received ''"): @@ -110,7 +110,7 @@ def test_path_params_retrieve(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: SentDm) -> None: profile = client.profiles.update( @@ -118,7 +118,7 @@ def test_method_update(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: SentDm) -> None: profile = client.profiles.update( @@ -145,7 +145,7 @@ def test_method_update_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: SentDm) -> None: response = client.profiles.with_raw_response.update( @@ -157,7 +157,7 @@ def test_raw_response_update(self, client: SentDm) -> None: profile = response.parse() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: SentDm) -> None: with client.profiles.with_streaming_response.update( @@ -171,7 +171,7 @@ def test_streaming_response_update(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_profile_id` but received ''"): @@ -179,13 +179,13 @@ def test_path_params_update(self, client: SentDm) -> None: path_profile_id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: profile = client.profiles.list() assert_matches_type(ProfileListResponse, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.profiles.with_raw_response.list() @@ -195,7 +195,7 @@ def test_raw_response_list(self, client: SentDm) -> None: profile = response.parse() assert_matches_type(ProfileListResponse, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.profiles.with_streaming_response.list() as response: @@ -207,7 +207,7 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: SentDm) -> None: profile = client.profiles.delete( @@ -215,7 +215,7 @@ def test_method_delete(self, client: SentDm) -> None: ) assert profile is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_with_all_params(self, client: SentDm) -> None: profile = client.profiles.delete( @@ -225,7 +225,7 @@ def test_method_delete_with_all_params(self, client: SentDm) -> None: ) assert profile is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: SentDm) -> None: response = client.profiles.with_raw_response.delete( @@ -237,7 +237,7 @@ def test_raw_response_delete(self, client: SentDm) -> None: profile = response.parse() assert profile is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: SentDm) -> None: with client.profiles.with_streaming_response.delete( @@ -251,7 +251,7 @@ def test_streaming_response_delete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_profile_id` but received ''"): @@ -259,7 +259,7 @@ def test_path_params_delete(self, client: SentDm) -> None: path_profile_id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_complete(self, client: SentDm) -> None: profile = client.profiles.complete( @@ -268,7 +268,7 @@ def test_method_complete(self, client: SentDm) -> None: ) assert_matches_type(object, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_complete_with_all_params(self, client: SentDm) -> None: profile = client.profiles.complete( @@ -279,7 +279,7 @@ def test_method_complete_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(object, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_complete(self, client: SentDm) -> None: response = client.profiles.with_raw_response.complete( @@ -292,7 +292,7 @@ def test_raw_response_complete(self, client: SentDm) -> None: profile = response.parse() assert_matches_type(object, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_complete(self, client: SentDm) -> None: with client.profiles.with_streaming_response.complete( @@ -307,7 +307,7 @@ def test_streaming_response_complete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_complete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `profile_id` but received ''"): @@ -322,13 +322,13 @@ class TestAsyncProfiles: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.create() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.create( @@ -348,7 +348,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: response = await async_client.profiles.with_raw_response.create() @@ -358,7 +358,7 @@ async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: profile = await response.parse() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncSentDm) -> None: async with async_client.profiles.with_streaming_response.create() as response: @@ -370,7 +370,7 @@ async def test_streaming_response_create(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.retrieve( @@ -378,7 +378,7 @@ async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: response = await async_client.profiles.with_raw_response.retrieve( @@ -390,7 +390,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: profile = await response.parse() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> None: async with async_client.profiles.with_streaming_response.retrieve( @@ -404,7 +404,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `profile_id` but received ''"): @@ -412,7 +412,7 @@ async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.update( @@ -420,7 +420,7 @@ async def test_method_update(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.update( @@ -447,7 +447,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: response = await async_client.profiles.with_raw_response.update( @@ -459,7 +459,7 @@ async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: profile = await response.parse() assert_matches_type(APIResponseOfProfileDetail, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncSentDm) -> None: async with async_client.profiles.with_streaming_response.update( @@ -473,7 +473,7 @@ async def test_streaming_response_update(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_profile_id` but received ''"): @@ -481,13 +481,13 @@ async def test_path_params_update(self, async_client: AsyncSentDm) -> None: path_profile_id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.list() assert_matches_type(ProfileListResponse, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.profiles.with_raw_response.list() @@ -497,7 +497,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: profile = await response.parse() assert_matches_type(ProfileListResponse, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.profiles.with_streaming_response.list() as response: @@ -509,7 +509,7 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.delete( @@ -517,7 +517,7 @@ async def test_method_delete(self, async_client: AsyncSentDm) -> None: ) assert profile is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.delete( @@ -527,7 +527,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> ) assert profile is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: response = await async_client.profiles.with_raw_response.delete( @@ -539,7 +539,7 @@ async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: profile = await response.parse() assert profile is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> None: async with async_client.profiles.with_streaming_response.delete( @@ -553,7 +553,7 @@ async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_profile_id` but received ''"): @@ -561,7 +561,7 @@ async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: path_profile_id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_complete(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.complete( @@ -570,7 +570,7 @@ async def test_method_complete(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(object, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_complete_with_all_params(self, async_client: AsyncSentDm) -> None: profile = await async_client.profiles.complete( @@ -581,7 +581,7 @@ async def test_method_complete_with_all_params(self, async_client: AsyncSentDm) ) assert_matches_type(object, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_complete(self, async_client: AsyncSentDm) -> None: response = await async_client.profiles.with_raw_response.complete( @@ -594,7 +594,7 @@ async def test_raw_response_complete(self, async_client: AsyncSentDm) -> None: profile = await response.parse() assert_matches_type(object, profile, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_complete(self, async_client: AsyncSentDm) -> None: async with async_client.profiles.with_streaming_response.complete( @@ -609,7 +609,7 @@ async def test_streaming_response_complete(self, async_client: AsyncSentDm) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_complete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `profile_id` but received ''"): diff --git a/tests/api_resources/test_templates.py b/tests/api_resources/test_templates.py index a9f3948a..9b6d734f 100644 --- a/tests/api_resources/test_templates.py +++ b/tests/api_resources/test_templates.py @@ -20,13 +20,13 @@ class TestTemplates: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: SentDm) -> None: template = client.templates.create() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: SentDm) -> None: template = client.templates.create( @@ -176,7 +176,7 @@ def test_method_create_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: SentDm) -> None: response = client.templates.with_raw_response.create() @@ -186,7 +186,7 @@ def test_raw_response_create(self, client: SentDm) -> None: template = response.parse() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: SentDm) -> None: with client.templates.with_streaming_response.create() as response: @@ -198,7 +198,7 @@ def test_streaming_response_create(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: SentDm) -> None: template = client.templates.retrieve( @@ -206,7 +206,7 @@ def test_method_retrieve(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: SentDm) -> None: response = client.templates.with_raw_response.retrieve( @@ -218,7 +218,7 @@ def test_raw_response_retrieve(self, client: SentDm) -> None: template = response.parse() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: SentDm) -> None: with client.templates.with_streaming_response.retrieve( @@ -232,7 +232,7 @@ def test_streaming_response_retrieve(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -240,7 +240,7 @@ def test_path_params_retrieve(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: SentDm) -> None: template = client.templates.update( @@ -248,7 +248,7 @@ def test_method_update(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: SentDm) -> None: template = client.templates.update( @@ -386,7 +386,7 @@ def test_method_update_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: SentDm) -> None: response = client.templates.with_raw_response.update( @@ -398,7 +398,7 @@ def test_raw_response_update(self, client: SentDm) -> None: template = response.parse() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: SentDm) -> None: with client.templates.with_streaming_response.update( @@ -412,7 +412,7 @@ def test_streaming_response_update(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -420,7 +420,7 @@ def test_path_params_update(self, client: SentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: template = client.templates.list( @@ -429,7 +429,7 @@ def test_method_list(self, client: SentDm) -> None: ) assert_matches_type(TemplateListResponse, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_with_all_params(self, client: SentDm) -> None: template = client.templates.list( @@ -441,7 +441,7 @@ def test_method_list_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(TemplateListResponse, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.templates.with_raw_response.list( @@ -454,7 +454,7 @@ def test_raw_response_list(self, client: SentDm) -> None: template = response.parse() assert_matches_type(TemplateListResponse, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.templates.with_streaming_response.list( @@ -469,7 +469,7 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: SentDm) -> None: template = client.templates.delete( @@ -477,7 +477,7 @@ def test_method_delete(self, client: SentDm) -> None: ) assert template is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_with_all_params(self, client: SentDm) -> None: template = client.templates.delete( @@ -487,7 +487,7 @@ def test_method_delete_with_all_params(self, client: SentDm) -> None: ) assert template is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: SentDm) -> None: response = client.templates.with_raw_response.delete( @@ -499,7 +499,7 @@ def test_raw_response_delete(self, client: SentDm) -> None: template = response.parse() assert template is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: SentDm) -> None: with client.templates.with_streaming_response.delete( @@ -513,7 +513,7 @@ def test_streaming_response_delete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -527,13 +527,13 @@ class TestAsyncTemplates: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.create() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.create( @@ -683,7 +683,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: response = await async_client.templates.with_raw_response.create() @@ -693,7 +693,7 @@ async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: template = await response.parse() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncSentDm) -> None: async with async_client.templates.with_streaming_response.create() as response: @@ -705,7 +705,7 @@ async def test_streaming_response_create(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.retrieve( @@ -713,7 +713,7 @@ async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: response = await async_client.templates.with_raw_response.retrieve( @@ -725,7 +725,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: template = await response.parse() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> None: async with async_client.templates.with_streaming_response.retrieve( @@ -739,7 +739,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -747,7 +747,7 @@ async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.update( @@ -755,7 +755,7 @@ async def test_method_update(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.update( @@ -893,7 +893,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: response = await async_client.templates.with_raw_response.update( @@ -905,7 +905,7 @@ async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: template = await response.parse() assert_matches_type(APIResponseTemplate, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncSentDm) -> None: async with async_client.templates.with_streaming_response.update( @@ -919,7 +919,7 @@ async def test_streaming_response_update(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -927,7 +927,7 @@ async def test_path_params_update(self, async_client: AsyncSentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.list( @@ -936,7 +936,7 @@ async def test_method_list(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(TemplateListResponse, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.list( @@ -948,7 +948,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncSentDm) -> N ) assert_matches_type(TemplateListResponse, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.templates.with_raw_response.list( @@ -961,7 +961,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: template = await response.parse() assert_matches_type(TemplateListResponse, template, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.templates.with_streaming_response.list( @@ -976,7 +976,7 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.delete( @@ -984,7 +984,7 @@ async def test_method_delete(self, async_client: AsyncSentDm) -> None: ) assert template is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> None: template = await async_client.templates.delete( @@ -994,7 +994,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncSentDm) -> ) assert template is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: response = await async_client.templates.with_raw_response.delete( @@ -1006,7 +1006,7 @@ async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: template = await response.parse() assert template is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> None: async with async_client.templates.with_streaming_response.delete( @@ -1020,7 +1020,7 @@ async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_users.py b/tests/api_resources/test_users.py index dd111ca2..380d2716 100644 --- a/tests/api_resources/test_users.py +++ b/tests/api_resources/test_users.py @@ -20,7 +20,7 @@ class TestUsers: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: SentDm) -> None: user = client.users.retrieve( @@ -28,7 +28,7 @@ def test_method_retrieve(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: SentDm) -> None: response = client.users.with_raw_response.retrieve( @@ -40,7 +40,7 @@ def test_raw_response_retrieve(self, client: SentDm) -> None: user = response.parse() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: SentDm) -> None: with client.users.with_streaming_response.retrieve( @@ -54,7 +54,7 @@ def test_streaming_response_retrieve(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"): @@ -62,13 +62,13 @@ def test_path_params_retrieve(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: user = client.users.list() assert_matches_type(UserListResponse, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.users.with_raw_response.list() @@ -78,7 +78,7 @@ def test_raw_response_list(self, client: SentDm) -> None: user = response.parse() assert_matches_type(UserListResponse, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.users.with_streaming_response.list() as response: @@ -90,13 +90,13 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_invite(self, client: SentDm) -> None: user = client.users.invite() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_invite_with_all_params(self, client: SentDm) -> None: user = client.users.invite( @@ -108,7 +108,7 @@ def test_method_invite_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_invite(self, client: SentDm) -> None: response = client.users.with_raw_response.invite() @@ -118,7 +118,7 @@ def test_raw_response_invite(self, client: SentDm) -> None: user = response.parse() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_invite(self, client: SentDm) -> None: with client.users.with_streaming_response.invite() as response: @@ -130,7 +130,7 @@ def test_streaming_response_invite(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_remove(self, client: SentDm) -> None: user = client.users.remove( @@ -138,7 +138,7 @@ def test_method_remove(self, client: SentDm) -> None: ) assert user is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_remove_with_all_params(self, client: SentDm) -> None: user = client.users.remove( @@ -148,7 +148,7 @@ def test_method_remove_with_all_params(self, client: SentDm) -> None: ) assert user is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_remove(self, client: SentDm) -> None: response = client.users.with_raw_response.remove( @@ -160,7 +160,7 @@ def test_raw_response_remove(self, client: SentDm) -> None: user = response.parse() assert user is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_remove(self, client: SentDm) -> None: with client.users.with_streaming_response.remove( @@ -174,7 +174,7 @@ def test_streaming_response_remove(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_remove(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_user_id` but received ''"): @@ -182,7 +182,7 @@ def test_path_params_remove(self, client: SentDm) -> None: path_user_id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_role(self, client: SentDm) -> None: user = client.users.update_role( @@ -190,7 +190,7 @@ def test_method_update_role(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_role_with_all_params(self, client: SentDm) -> None: user = client.users.update_role( @@ -202,7 +202,7 @@ def test_method_update_role_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update_role(self, client: SentDm) -> None: response = client.users.with_raw_response.update_role( @@ -214,7 +214,7 @@ def test_raw_response_update_role(self, client: SentDm) -> None: user = response.parse() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update_role(self, client: SentDm) -> None: with client.users.with_streaming_response.update_role( @@ -228,7 +228,7 @@ def test_streaming_response_update_role(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update_role(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_user_id` but received ''"): @@ -242,7 +242,7 @@ class TestAsyncUsers: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: user = await async_client.users.retrieve( @@ -250,7 +250,7 @@ async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: response = await async_client.users.with_raw_response.retrieve( @@ -262,7 +262,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: user = await response.parse() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> None: async with async_client.users.with_streaming_response.retrieve( @@ -276,7 +276,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `user_id` but received ''"): @@ -284,13 +284,13 @@ async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: user = await async_client.users.list() assert_matches_type(UserListResponse, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.users.with_raw_response.list() @@ -300,7 +300,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: user = await response.parse() assert_matches_type(UserListResponse, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.users.with_streaming_response.list() as response: @@ -312,13 +312,13 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_invite(self, async_client: AsyncSentDm) -> None: user = await async_client.users.invite() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_invite_with_all_params(self, async_client: AsyncSentDm) -> None: user = await async_client.users.invite( @@ -330,7 +330,7 @@ async def test_method_invite_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_invite(self, async_client: AsyncSentDm) -> None: response = await async_client.users.with_raw_response.invite() @@ -340,7 +340,7 @@ async def test_raw_response_invite(self, async_client: AsyncSentDm) -> None: user = await response.parse() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_invite(self, async_client: AsyncSentDm) -> None: async with async_client.users.with_streaming_response.invite() as response: @@ -352,7 +352,7 @@ async def test_streaming_response_invite(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_remove(self, async_client: AsyncSentDm) -> None: user = await async_client.users.remove( @@ -360,7 +360,7 @@ async def test_method_remove(self, async_client: AsyncSentDm) -> None: ) assert user is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_remove_with_all_params(self, async_client: AsyncSentDm) -> None: user = await async_client.users.remove( @@ -370,7 +370,7 @@ async def test_method_remove_with_all_params(self, async_client: AsyncSentDm) -> ) assert user is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_remove(self, async_client: AsyncSentDm) -> None: response = await async_client.users.with_raw_response.remove( @@ -382,7 +382,7 @@ async def test_raw_response_remove(self, async_client: AsyncSentDm) -> None: user = await response.parse() assert user is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_remove(self, async_client: AsyncSentDm) -> None: async with async_client.users.with_streaming_response.remove( @@ -396,7 +396,7 @@ async def test_streaming_response_remove(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_remove(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_user_id` but received ''"): @@ -404,7 +404,7 @@ async def test_path_params_remove(self, async_client: AsyncSentDm) -> None: path_user_id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_role(self, async_client: AsyncSentDm) -> None: user = await async_client.users.update_role( @@ -412,7 +412,7 @@ async def test_method_update_role(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_role_with_all_params(self, async_client: AsyncSentDm) -> None: user = await async_client.users.update_role( @@ -424,7 +424,7 @@ async def test_method_update_role_with_all_params(self, async_client: AsyncSentD ) assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update_role(self, async_client: AsyncSentDm) -> None: response = await async_client.users.with_raw_response.update_role( @@ -436,7 +436,7 @@ async def test_raw_response_update_role(self, async_client: AsyncSentDm) -> None user = await response.parse() assert_matches_type(APIResponseOfUser, user, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update_role(self, async_client: AsyncSentDm) -> None: async with async_client.users.with_streaming_response.update_role( @@ -450,7 +450,7 @@ async def test_streaming_response_update_role(self, async_client: AsyncSentDm) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update_role(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `path_user_id` but received ''"): diff --git a/tests/api_resources/test_webhooks.py b/tests/api_resources/test_webhooks.py index f534f161..6340ac0b 100644 --- a/tests/api_resources/test_webhooks.py +++ b/tests/api_resources/test_webhooks.py @@ -24,13 +24,13 @@ class TestWebhooks: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: SentDm) -> None: webhook = client.webhooks.create() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.create( @@ -44,7 +44,7 @@ def test_method_create_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.create() @@ -54,7 +54,7 @@ def test_raw_response_create(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.create() as response: @@ -66,7 +66,7 @@ def test_streaming_response_create(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve(self, client: SentDm) -> None: webhook = client.webhooks.retrieve( @@ -74,7 +74,7 @@ def test_method_retrieve(self, client: SentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_retrieve(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.retrieve( @@ -86,7 +86,7 @@ def test_raw_response_retrieve(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.retrieve( @@ -100,7 +100,7 @@ def test_streaming_response_retrieve(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_retrieve(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -108,7 +108,7 @@ def test_path_params_retrieve(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: SentDm) -> None: webhook = client.webhooks.update( @@ -116,7 +116,7 @@ def test_method_update(self, client: SentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.update( @@ -131,7 +131,7 @@ def test_method_update_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_update(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.update( @@ -143,7 +143,7 @@ def test_raw_response_update(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_update(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.update( @@ -157,7 +157,7 @@ def test_streaming_response_update(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_update(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -165,7 +165,7 @@ def test_path_params_update(self, client: SentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: SentDm) -> None: webhook = client.webhooks.list( @@ -174,7 +174,7 @@ def test_method_list(self, client: SentDm) -> None: ) assert_matches_type(WebhookListResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.list( @@ -185,7 +185,7 @@ def test_method_list_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(WebhookListResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.list( @@ -198,7 +198,7 @@ def test_raw_response_list(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(WebhookListResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.list( @@ -213,7 +213,7 @@ def test_streaming_response_list(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete(self, client: SentDm) -> None: webhook = client.webhooks.delete( @@ -221,7 +221,7 @@ def test_method_delete(self, client: SentDm) -> None: ) assert webhook is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_delete(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.delete( @@ -233,7 +233,7 @@ def test_raw_response_delete(self, client: SentDm) -> None: webhook = response.parse() assert webhook is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_delete(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.delete( @@ -247,7 +247,7 @@ def test_streaming_response_delete(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_delete(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -255,13 +255,13 @@ def test_path_params_delete(self, client: SentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_event_types(self, client: SentDm) -> None: webhook = client.webhooks.list_event_types() assert_matches_type(WebhookListEventTypesResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list_event_types(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.list_event_types() @@ -271,7 +271,7 @@ def test_raw_response_list_event_types(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(WebhookListEventTypesResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list_event_types(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.list_event_types() as response: @@ -283,7 +283,7 @@ def test_streaming_response_list_event_types(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_events(self, client: SentDm) -> None: webhook = client.webhooks.list_events( @@ -293,7 +293,7 @@ def test_method_list_events(self, client: SentDm) -> None: ) assert_matches_type(WebhookListEventsResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_events_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.list_events( @@ -304,7 +304,7 @@ def test_method_list_events_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(WebhookListEventsResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list_events(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.list_events( @@ -318,7 +318,7 @@ def test_raw_response_list_events(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(WebhookListEventsResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list_events(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.list_events( @@ -334,7 +334,7 @@ def test_streaming_response_list_events(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_list_events(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -344,7 +344,7 @@ def test_path_params_list_events(self, client: SentDm) -> None: page_size=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_rotate_secret(self, client: SentDm) -> None: webhook = client.webhooks.rotate_secret( @@ -353,7 +353,7 @@ def test_method_rotate_secret(self, client: SentDm) -> None: ) assert_matches_type(WebhookRotateSecretResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_rotate_secret_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.rotate_secret( @@ -363,7 +363,7 @@ def test_method_rotate_secret_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(WebhookRotateSecretResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_rotate_secret(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.rotate_secret( @@ -376,7 +376,7 @@ def test_raw_response_rotate_secret(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(WebhookRotateSecretResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_rotate_secret(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.rotate_secret( @@ -391,7 +391,7 @@ def test_streaming_response_rotate_secret(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_rotate_secret(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -400,7 +400,7 @@ def test_path_params_rotate_secret(self, client: SentDm) -> None: body={}, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_test(self, client: SentDm) -> None: webhook = client.webhooks.test( @@ -408,7 +408,7 @@ def test_method_test(self, client: SentDm) -> None: ) assert_matches_type(WebhookTestResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_test_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.test( @@ -419,7 +419,7 @@ def test_method_test_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(WebhookTestResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_test(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.test( @@ -431,7 +431,7 @@ def test_raw_response_test(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(WebhookTestResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_test(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.test( @@ -445,7 +445,7 @@ def test_streaming_response_test(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_test(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -453,7 +453,7 @@ def test_path_params_test(self, client: SentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_toggle_status(self, client: SentDm) -> None: webhook = client.webhooks.toggle_status( @@ -461,7 +461,7 @@ def test_method_toggle_status(self, client: SentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_toggle_status_with_all_params(self, client: SentDm) -> None: webhook = client.webhooks.toggle_status( @@ -472,7 +472,7 @@ def test_method_toggle_status_with_all_params(self, client: SentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_toggle_status(self, client: SentDm) -> None: response = client.webhooks.with_raw_response.toggle_status( @@ -484,7 +484,7 @@ def test_raw_response_toggle_status(self, client: SentDm) -> None: webhook = response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_toggle_status(self, client: SentDm) -> None: with client.webhooks.with_streaming_response.toggle_status( @@ -498,7 +498,7 @@ def test_streaming_response_toggle_status(self, client: SentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_toggle_status(self, client: SentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -512,13 +512,13 @@ class TestAsyncWebhooks: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.create() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.create( @@ -532,7 +532,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.create() @@ -542,7 +542,7 @@ async def test_raw_response_create(self, async_client: AsyncSentDm) -> None: webhook = await response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.create() as response: @@ -554,7 +554,7 @@ async def test_streaming_response_create(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.retrieve( @@ -562,7 +562,7 @@ async def test_method_retrieve(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.retrieve( @@ -574,7 +574,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncSentDm) -> None: webhook = await response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.retrieve( @@ -588,7 +588,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncSentDm) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -596,7 +596,7 @@ async def test_path_params_retrieve(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.update( @@ -604,7 +604,7 @@ async def test_method_update(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.update( @@ -619,7 +619,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncSentDm) -> ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.update( @@ -631,7 +631,7 @@ async def test_raw_response_update(self, async_client: AsyncSentDm) -> None: webhook = await response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.update( @@ -645,7 +645,7 @@ async def test_streaming_response_update(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -653,7 +653,7 @@ async def test_path_params_update(self, async_client: AsyncSentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.list( @@ -662,7 +662,7 @@ async def test_method_list(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(WebhookListResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.list( @@ -673,7 +673,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncSentDm) -> N ) assert_matches_type(WebhookListResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.list( @@ -686,7 +686,7 @@ async def test_raw_response_list(self, async_client: AsyncSentDm) -> None: webhook = await response.parse() assert_matches_type(WebhookListResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.list( @@ -701,7 +701,7 @@ async def test_streaming_response_list(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.delete( @@ -709,7 +709,7 @@ async def test_method_delete(self, async_client: AsyncSentDm) -> None: ) assert webhook is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.delete( @@ -721,7 +721,7 @@ async def test_raw_response_delete(self, async_client: AsyncSentDm) -> None: webhook = await response.parse() assert webhook is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.delete( @@ -735,7 +735,7 @@ async def test_streaming_response_delete(self, async_client: AsyncSentDm) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -743,13 +743,13 @@ async def test_path_params_delete(self, async_client: AsyncSentDm) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_event_types(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.list_event_types() assert_matches_type(WebhookListEventTypesResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list_event_types(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.list_event_types() @@ -759,7 +759,7 @@ async def test_raw_response_list_event_types(self, async_client: AsyncSentDm) -> webhook = await response.parse() assert_matches_type(WebhookListEventTypesResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list_event_types(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.list_event_types() as response: @@ -771,7 +771,7 @@ async def test_streaming_response_list_event_types(self, async_client: AsyncSent assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_events(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.list_events( @@ -781,7 +781,7 @@ async def test_method_list_events(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(WebhookListEventsResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_events_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.list_events( @@ -792,7 +792,7 @@ async def test_method_list_events_with_all_params(self, async_client: AsyncSentD ) assert_matches_type(WebhookListEventsResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list_events(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.list_events( @@ -806,7 +806,7 @@ async def test_raw_response_list_events(self, async_client: AsyncSentDm) -> None webhook = await response.parse() assert_matches_type(WebhookListEventsResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list_events(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.list_events( @@ -822,7 +822,7 @@ async def test_streaming_response_list_events(self, async_client: AsyncSentDm) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_list_events(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -832,7 +832,7 @@ async def test_path_params_list_events(self, async_client: AsyncSentDm) -> None: page_size=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_rotate_secret(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.rotate_secret( @@ -841,7 +841,7 @@ async def test_method_rotate_secret(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(WebhookRotateSecretResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_rotate_secret_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.rotate_secret( @@ -851,7 +851,7 @@ async def test_method_rotate_secret_with_all_params(self, async_client: AsyncSen ) assert_matches_type(WebhookRotateSecretResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_rotate_secret(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.rotate_secret( @@ -864,7 +864,7 @@ async def test_raw_response_rotate_secret(self, async_client: AsyncSentDm) -> No webhook = await response.parse() assert_matches_type(WebhookRotateSecretResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_rotate_secret(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.rotate_secret( @@ -879,7 +879,7 @@ async def test_streaming_response_rotate_secret(self, async_client: AsyncSentDm) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_rotate_secret(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -888,7 +888,7 @@ async def test_path_params_rotate_secret(self, async_client: AsyncSentDm) -> Non body={}, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_test(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.test( @@ -896,7 +896,7 @@ async def test_method_test(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(WebhookTestResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_test_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.test( @@ -907,7 +907,7 @@ async def test_method_test_with_all_params(self, async_client: AsyncSentDm) -> N ) assert_matches_type(WebhookTestResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_test(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.test( @@ -919,7 +919,7 @@ async def test_raw_response_test(self, async_client: AsyncSentDm) -> None: webhook = await response.parse() assert_matches_type(WebhookTestResponse, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_test(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.test( @@ -933,7 +933,7 @@ async def test_streaming_response_test(self, async_client: AsyncSentDm) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_test(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -941,7 +941,7 @@ async def test_path_params_test(self, async_client: AsyncSentDm) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_toggle_status(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.toggle_status( @@ -949,7 +949,7 @@ async def test_method_toggle_status(self, async_client: AsyncSentDm) -> None: ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_toggle_status_with_all_params(self, async_client: AsyncSentDm) -> None: webhook = await async_client.webhooks.toggle_status( @@ -960,7 +960,7 @@ async def test_method_toggle_status_with_all_params(self, async_client: AsyncSen ) assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_toggle_status(self, async_client: AsyncSentDm) -> None: response = await async_client.webhooks.with_raw_response.toggle_status( @@ -972,7 +972,7 @@ async def test_raw_response_toggle_status(self, async_client: AsyncSentDm) -> No webhook = await response.parse() assert_matches_type(APIResponseWebhook, webhook, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_toggle_status(self, async_client: AsyncSentDm) -> None: async with async_client.webhooks.with_streaming_response.toggle_status( @@ -986,7 +986,7 @@ async def test_streaming_response_toggle_status(self, async_client: AsyncSentDm) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_toggle_status(self, async_client: AsyncSentDm) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):