diff --git a/.release-please-manifest.json b/.release-please-manifest.json index ce5e5c7c..157f0355 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.35.0" + ".": "0.36.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 92d7f1dc..be750ebe 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 100 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a0f1d08e6f62a74de2aac5c25e592494abdd59f2cfca2842c5810927554faee0.yml -openapi_spec_hash: ebd8bf67b7bb371cf4b4fa68b967cab5 -config_hash: 27c0ea01aeb797a1767af139851c5b66 +configured_endpoints: 101 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-bbc3dbdd0410eb315cfaeb21aad9f85e4a7f92ac55526ebb702a8bee343c2ab7.yml +openapi_spec_hash: 60a5134c45a8f3a217e128d4e3335cae +config_hash: 147340811dd6fbb9c2d80515a7e31f9a diff --git a/CHANGELOG.md b/CHANGELOG.md index eb47e82d..ee6e6a13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.36.0 (2026-02-21) + +Full Changelog: [v0.35.0...v0.36.0](https://github.com/kernel/kernel-python-sdk/compare/v0.35.0...v0.36.0) + +### Features + +* Add DELETE /deployments/{id} API endpoint ([509a49c](https://github.com/kernel/kernel-python-sdk/commit/509a49ca1ffd55f92309de62cefcc60a1d0fa84c)) + + +### Chores + +* **internal:** remove mock server code ([0d315e0](https://github.com/kernel/kernel-python-sdk/commit/0d315e0393c991fc96fc89ddba2792d2abb984c6)) +* **test:** update skip reason message ([78129c9](https://github.com/kernel/kernel-python-sdk/commit/78129c999887442f99ca6442a46626ba475a85d0)) +* update mock server docs ([e545bce](https://github.com/kernel/kernel-python-sdk/commit/e545bced8ac751eac0dc8c5e7b800d9b06d6d35a)) + ## 0.35.0 (2026-02-18) Full Changelog: [v0.34.0...v0.35.0](https://github.com/kernel/kernel-python-sdk/compare/v0.34.0...v0.35.0) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9cb624fb..b5bef2f2 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/api.md b/api.md index e76371c3..45197699 100644 --- a/api.md +++ b/api.md @@ -33,6 +33,7 @@ Methods: - client.deployments.create(\*\*params) -> DeploymentCreateResponse - client.deployments.retrieve(id) -> DeploymentRetrieveResponse - client.deployments.list(\*\*params) -> SyncOffsetPagination[DeploymentListResponse] +- client.deployments.delete(id) -> None - client.deployments.follow(id, \*\*params) -> DeploymentFollowResponse # Apps diff --git a/pyproject.toml b/pyproject.toml index 75cbfbee..ecebc6fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kernel" -version = "0.35.0" +version = "0.36.0" description = "The official Python library for the kernel 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 dbeda2d2..39729d09 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/kernel/_version.py b/src/kernel/_version.py index ccc3c759..a4c76b0e 100644 --- a/src/kernel/_version.py +++ b/src/kernel/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "kernel" -__version__ = "0.35.0" # x-release-please-version +__version__ = "0.36.0" # x-release-please-version diff --git a/src/kernel/resources/deployments.py b/src/kernel/resources/deployments.py index f924531c..06e28877 100644 --- a/src/kernel/resources/deployments.py +++ b/src/kernel/resources/deployments.py @@ -8,7 +8,7 @@ import httpx from ..types import deployment_list_params, deployment_create_params, deployment_follow_params -from .._types import Body, Omit, Query, Headers, NotGiven, FileTypes, omit, not_given +from .._types import Body, Omit, Query, Headers, NoneType, NotGiven, FileTypes, omit, not_given from .._utils import extract_files, maybe_transform, deepcopy_minimal, async_maybe_transform from .._compat import cached_property from .._resource import SyncAPIResource, AsyncAPIResource @@ -204,6 +204,42 @@ def list( model=DeploymentListResponse, ) + def delete( + self, + id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> None: + """Stops a running deployment and marks it for deletion. + + If the deployment is + already in a terminal state (stopped or failed), returns immediately. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not id: + raise ValueError(f"Expected a non-empty value for `id` but received {id!r}") + extra_headers = {"Accept": "*/*", **(extra_headers or {})} + return self._delete( + f"/deployments/{id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=NoneType, + ) + def follow( self, id: str, @@ -427,6 +463,42 @@ def list( model=DeploymentListResponse, ) + async def delete( + self, + id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> None: + """Stops a running deployment and marks it for deletion. + + If the deployment is + already in a terminal state (stopped or failed), returns immediately. + + Args: + extra_headers: Send extra headers + + extra_query: Add additional query parameters to the request + + extra_body: Add additional JSON properties to the request + + timeout: Override the client-level default timeout for this request, in seconds + """ + if not id: + raise ValueError(f"Expected a non-empty value for `id` but received {id!r}") + extra_headers = {"Accept": "*/*", **(extra_headers or {})} + return await self._delete( + f"/deployments/{id}", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=NoneType, + ) + async def follow( self, id: str, @@ -488,6 +560,9 @@ def __init__(self, deployments: DeploymentsResource) -> None: self.list = to_raw_response_wrapper( deployments.list, ) + self.delete = to_raw_response_wrapper( + deployments.delete, + ) self.follow = to_raw_response_wrapper( deployments.follow, ) @@ -506,6 +581,9 @@ def __init__(self, deployments: AsyncDeploymentsResource) -> None: self.list = async_to_raw_response_wrapper( deployments.list, ) + self.delete = async_to_raw_response_wrapper( + deployments.delete, + ) self.follow = async_to_raw_response_wrapper( deployments.follow, ) @@ -524,6 +602,9 @@ def __init__(self, deployments: DeploymentsResource) -> None: self.list = to_streamed_response_wrapper( deployments.list, ) + self.delete = to_streamed_response_wrapper( + deployments.delete, + ) self.follow = to_streamed_response_wrapper( deployments.follow, ) @@ -542,6 +623,9 @@ def __init__(self, deployments: AsyncDeploymentsResource) -> None: self.list = async_to_streamed_response_wrapper( deployments.list, ) + self.delete = async_to_streamed_response_wrapper( + deployments.delete, + ) self.follow = async_to_streamed_response_wrapper( deployments.follow, ) diff --git a/tests/api_resources/auth/test_connections.py b/tests/api_resources/auth/test_connections.py index f0ab57b6..e71a1736 100644 --- a/tests/api_resources/auth/test_connections.py +++ b/tests/api_resources/auth/test_connections.py @@ -22,7 +22,7 @@ class TestConnections: 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: Kernel) -> None: connection = client.auth.connections.create( @@ -31,7 +31,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(ManagedAuth, connection, 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: Kernel) -> None: connection = client.auth.connections.create( @@ -54,7 +54,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ManagedAuth, connection, 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: Kernel) -> None: response = client.auth.connections.with_raw_response.create( @@ -67,7 +67,7 @@ def test_raw_response_create(self, client: Kernel) -> None: connection = response.parse() assert_matches_type(ManagedAuth, connection, 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: Kernel) -> None: with client.auth.connections.with_streaming_response.create( @@ -82,7 +82,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: connection = client.auth.connections.retrieve( @@ -90,7 +90,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(ManagedAuth, connection, 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: Kernel) -> None: response = client.auth.connections.with_raw_response.retrieve( @@ -102,7 +102,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: connection = response.parse() assert_matches_type(ManagedAuth, connection, 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: Kernel) -> None: with client.auth.connections.with_streaming_response.retrieve( @@ -116,7 +116,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -124,13 +124,13 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: connection = client.auth.connections.list() assert_matches_type(SyncOffsetPagination[ManagedAuth], connection, 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: Kernel) -> None: connection = client.auth.connections.list( @@ -141,7 +141,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SyncOffsetPagination[ManagedAuth], connection, 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: Kernel) -> None: response = client.auth.connections.with_raw_response.list() @@ -151,7 +151,7 @@ def test_raw_response_list(self, client: Kernel) -> None: connection = response.parse() assert_matches_type(SyncOffsetPagination[ManagedAuth], connection, 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: Kernel) -> None: with client.auth.connections.with_streaming_response.list() as response: @@ -163,7 +163,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: connection = client.auth.connections.delete( @@ -171,7 +171,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert connection 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: Kernel) -> None: response = client.auth.connections.with_raw_response.delete( @@ -183,7 +183,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: connection = response.parse() assert connection 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: Kernel) -> None: with client.auth.connections.with_streaming_response.delete( @@ -197,7 +197,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -205,7 +205,7 @@ def test_path_params_delete(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_follow(self, client: Kernel) -> None: connection_stream = client.auth.connections.follow( @@ -213,7 +213,7 @@ def test_method_follow(self, client: Kernel) -> None: ) connection_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_follow(self, client: Kernel) -> None: response = client.auth.connections.with_raw_response.follow( @@ -224,7 +224,7 @@ def test_raw_response_follow(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_follow(self, client: Kernel) -> None: with client.auth.connections.with_streaming_response.follow( @@ -238,7 +238,7 @@ def test_streaming_response_follow(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_follow(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -246,7 +246,7 @@ def test_path_params_follow(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_login(self, client: Kernel) -> None: connection = client.auth.connections.login( @@ -254,7 +254,7 @@ def test_method_login(self, client: Kernel) -> None: ) assert_matches_type(LoginResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_login_with_all_params(self, client: Kernel) -> None: connection = client.auth.connections.login( @@ -266,7 +266,7 @@ def test_method_login_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(LoginResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_login(self, client: Kernel) -> None: response = client.auth.connections.with_raw_response.login( @@ -278,7 +278,7 @@ def test_raw_response_login(self, client: Kernel) -> None: connection = response.parse() assert_matches_type(LoginResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_login(self, client: Kernel) -> None: with client.auth.connections.with_streaming_response.login( @@ -292,7 +292,7 @@ def test_streaming_response_login(self, client: Kernel) -> 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_login(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -300,7 +300,7 @@ def test_path_params_login(self, client: Kernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_submit(self, client: Kernel) -> None: connection = client.auth.connections.submit( @@ -308,7 +308,7 @@ def test_method_submit(self, client: Kernel) -> None: ) assert_matches_type(SubmitFieldsResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_submit_with_all_params(self, client: Kernel) -> None: connection = client.auth.connections.submit( @@ -322,7 +322,7 @@ def test_method_submit_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SubmitFieldsResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_submit(self, client: Kernel) -> None: response = client.auth.connections.with_raw_response.submit( @@ -334,7 +334,7 @@ def test_raw_response_submit(self, client: Kernel) -> None: connection = response.parse() assert_matches_type(SubmitFieldsResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_submit(self, client: Kernel) -> None: with client.auth.connections.with_streaming_response.submit( @@ -348,7 +348,7 @@ def test_streaming_response_submit(self, client: Kernel) -> 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_submit(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -362,7 +362,7 @@ class TestAsyncConnections: "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: AsyncKernel) -> None: connection = await async_client.auth.connections.create( @@ -371,7 +371,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ManagedAuth, connection, 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: AsyncKernel) -> None: connection = await async_client.auth.connections.create( @@ -394,7 +394,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(ManagedAuth, connection, 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: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.create( @@ -407,7 +407,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: connection = await response.parse() assert_matches_type(ManagedAuth, connection, 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: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.create( @@ -422,7 +422,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: connection = await async_client.auth.connections.retrieve( @@ -430,7 +430,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ManagedAuth, connection, 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: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.retrieve( @@ -442,7 +442,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: connection = await response.parse() assert_matches_type(ManagedAuth, connection, 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: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.retrieve( @@ -456,7 +456,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -464,13 +464,13 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: connection = await async_client.auth.connections.list() assert_matches_type(AsyncOffsetPagination[ManagedAuth], connection, 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: AsyncKernel) -> None: connection = await async_client.auth.connections.list( @@ -481,7 +481,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AsyncOffsetPagination[ManagedAuth], connection, 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: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.list() @@ -491,7 +491,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: connection = await response.parse() assert_matches_type(AsyncOffsetPagination[ManagedAuth], connection, 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: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.list() as response: @@ -503,7 +503,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: connection = await async_client.auth.connections.delete( @@ -511,7 +511,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert connection 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: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.delete( @@ -523,7 +523,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: connection = await response.parse() assert connection 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: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.delete( @@ -537,7 +537,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -545,7 +545,7 @@ async def test_path_params_delete(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_follow(self, async_client: AsyncKernel) -> None: connection_stream = await async_client.auth.connections.follow( @@ -553,7 +553,7 @@ async def test_method_follow(self, async_client: AsyncKernel) -> None: ) await connection_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.follow( @@ -564,7 +564,7 @@ async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_follow(self, async_client: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.follow( @@ -578,7 +578,7 @@ async def test_streaming_response_follow(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_follow(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -586,7 +586,7 @@ async def test_path_params_follow(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_login(self, async_client: AsyncKernel) -> None: connection = await async_client.auth.connections.login( @@ -594,7 +594,7 @@ async def test_method_login(self, async_client: AsyncKernel) -> None: ) assert_matches_type(LoginResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_login_with_all_params(self, async_client: AsyncKernel) -> None: connection = await async_client.auth.connections.login( @@ -606,7 +606,7 @@ async def test_method_login_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(LoginResponse, connection, 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_login(self, async_client: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.login( @@ -618,7 +618,7 @@ async def test_raw_response_login(self, async_client: AsyncKernel) -> None: connection = await response.parse() assert_matches_type(LoginResponse, connection, 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_login(self, async_client: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.login( @@ -632,7 +632,7 @@ async def test_streaming_response_login(self, async_client: AsyncKernel) -> 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_login(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -640,7 +640,7 @@ async def test_path_params_login(self, async_client: AsyncKernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_submit(self, async_client: AsyncKernel) -> None: connection = await async_client.auth.connections.submit( @@ -648,7 +648,7 @@ async def test_method_submit(self, async_client: AsyncKernel) -> None: ) assert_matches_type(SubmitFieldsResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_submit_with_all_params(self, async_client: AsyncKernel) -> None: connection = await async_client.auth.connections.submit( @@ -662,7 +662,7 @@ async def test_method_submit_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(SubmitFieldsResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_submit(self, async_client: AsyncKernel) -> None: response = await async_client.auth.connections.with_raw_response.submit( @@ -674,7 +674,7 @@ async def test_raw_response_submit(self, async_client: AsyncKernel) -> None: connection = await response.parse() assert_matches_type(SubmitFieldsResponse, connection, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_submit(self, async_client: AsyncKernel) -> None: async with async_client.auth.connections.with_streaming_response.submit( @@ -688,7 +688,7 @@ async def test_streaming_response_submit(self, async_client: AsyncKernel) -> 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_submit(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/fs/test_watch.py b/tests/api_resources/browsers/fs/test_watch.py index 683e1549..b28086ba 100644 --- a/tests/api_resources/browsers/fs/test_watch.py +++ b/tests/api_resources/browsers/fs/test_watch.py @@ -17,7 +17,7 @@ class TestWatch: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_events(self, client: Kernel) -> None: watch_stream = client.browsers.fs.watch.events( @@ -26,7 +26,7 @@ def test_method_events(self, client: Kernel) -> None: ) watch_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_events(self, client: Kernel) -> None: response = client.browsers.fs.watch.with_raw_response.events( @@ -38,7 +38,7 @@ def test_raw_response_events(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_events(self, client: Kernel) -> None: with client.browsers.fs.watch.with_streaming_response.events( @@ -53,7 +53,7 @@ def test_streaming_response_events(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_events(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -68,7 +68,7 @@ def test_path_params_events(self, client: Kernel) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_start(self, client: Kernel) -> None: watch = client.browsers.fs.watch.start( @@ -77,7 +77,7 @@ def test_method_start(self, client: Kernel) -> None: ) assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_start_with_all_params(self, client: Kernel) -> None: watch = client.browsers.fs.watch.start( @@ -87,7 +87,7 @@ def test_method_start_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_start(self, client: Kernel) -> None: response = client.browsers.fs.watch.with_raw_response.start( @@ -100,7 +100,7 @@ def test_raw_response_start(self, client: Kernel) -> None: watch = response.parse() assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_start(self, client: Kernel) -> None: with client.browsers.fs.watch.with_streaming_response.start( @@ -115,7 +115,7 @@ def test_streaming_response_start(self, client: Kernel) -> 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_start(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -124,7 +124,7 @@ def test_path_params_start(self, client: Kernel) -> None: path="path", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_stop(self, client: Kernel) -> None: watch = client.browsers.fs.watch.stop( @@ -133,7 +133,7 @@ def test_method_stop(self, client: Kernel) -> None: ) assert watch is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_stop(self, client: Kernel) -> None: response = client.browsers.fs.watch.with_raw_response.stop( @@ -146,7 +146,7 @@ def test_raw_response_stop(self, client: Kernel) -> None: watch = response.parse() assert watch is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_stop(self, client: Kernel) -> None: with client.browsers.fs.watch.with_streaming_response.stop( @@ -161,7 +161,7 @@ def test_streaming_response_stop(self, client: Kernel) -> 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_stop(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -182,7 +182,7 @@ class TestAsyncWatch: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_events(self, async_client: AsyncKernel) -> None: watch_stream = await async_client.browsers.fs.watch.events( @@ -191,7 +191,7 @@ async def test_method_events(self, async_client: AsyncKernel) -> None: ) await watch_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_events(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.watch.with_raw_response.events( @@ -203,7 +203,7 @@ async def test_raw_response_events(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_events(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.watch.with_streaming_response.events( @@ -218,7 +218,7 @@ async def test_streaming_response_events(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_events(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -233,7 +233,7 @@ async def test_path_params_events(self, async_client: AsyncKernel) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_start(self, async_client: AsyncKernel) -> None: watch = await async_client.browsers.fs.watch.start( @@ -242,7 +242,7 @@ async def test_method_start(self, async_client: AsyncKernel) -> None: ) assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_start_with_all_params(self, async_client: AsyncKernel) -> None: watch = await async_client.browsers.fs.watch.start( @@ -252,7 +252,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(WatchStartResponse, watch, 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_start(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.watch.with_raw_response.start( @@ -265,7 +265,7 @@ async def test_raw_response_start(self, async_client: AsyncKernel) -> None: watch = await response.parse() assert_matches_type(WatchStartResponse, watch, 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_start(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.watch.with_streaming_response.start( @@ -280,7 +280,7 @@ async def test_streaming_response_start(self, async_client: AsyncKernel) -> 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_start(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -289,7 +289,7 @@ async def test_path_params_start(self, async_client: AsyncKernel) -> None: path="path", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_stop(self, async_client: AsyncKernel) -> None: watch = await async_client.browsers.fs.watch.stop( @@ -298,7 +298,7 @@ async def test_method_stop(self, async_client: AsyncKernel) -> None: ) assert watch 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_stop(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.watch.with_raw_response.stop( @@ -311,7 +311,7 @@ async def test_raw_response_stop(self, async_client: AsyncKernel) -> None: watch = await response.parse() assert watch 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_stop(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.watch.with_streaming_response.stop( @@ -326,7 +326,7 @@ async def test_streaming_response_stop(self, async_client: AsyncKernel) -> 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_stop(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/test_computer.py b/tests/api_resources/browsers/test_computer.py index f98f81af..091fc91d 100644 --- a/tests/api_resources/browsers/test_computer.py +++ b/tests/api_resources/browsers/test_computer.py @@ -28,7 +28,7 @@ class TestComputer: 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_batch(self, client: Kernel) -> None: computer = client.browsers.computer.batch( @@ -37,7 +37,7 @@ def test_method_batch(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_batch(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.batch( @@ -50,7 +50,7 @@ def test_raw_response_batch(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_batch(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.batch( @@ -65,7 +65,7 @@ def test_streaming_response_batch(self, client: Kernel) -> 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_batch(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -142,7 +142,7 @@ def test_path_params_capture_screenshot(self, client: Kernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_click_mouse(self, client: Kernel) -> None: computer = client.browsers.computer.click_mouse( @@ -152,7 +152,7 @@ def test_method_click_mouse(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_click_mouse_with_all_params(self, client: Kernel) -> None: computer = client.browsers.computer.click_mouse( @@ -166,7 +166,7 @@ def test_method_click_mouse_with_all_params(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_click_mouse(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.click_mouse( @@ -180,7 +180,7 @@ def test_raw_response_click_mouse(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_click_mouse(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.click_mouse( @@ -196,7 +196,7 @@ def test_streaming_response_click_mouse(self, client: Kernel) -> 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_click_mouse(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -206,7 +206,7 @@ def test_path_params_click_mouse(self, client: Kernel) -> None: y=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_drag_mouse(self, client: Kernel) -> None: computer = client.browsers.computer.drag_mouse( @@ -215,7 +215,7 @@ def test_method_drag_mouse(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_drag_mouse_with_all_params(self, client: Kernel) -> None: computer = client.browsers.computer.drag_mouse( @@ -229,7 +229,7 @@ def test_method_drag_mouse_with_all_params(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_drag_mouse(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.drag_mouse( @@ -242,7 +242,7 @@ def test_raw_response_drag_mouse(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_drag_mouse(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.drag_mouse( @@ -257,7 +257,7 @@ def test_streaming_response_drag_mouse(self, client: Kernel) -> 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_drag_mouse(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -266,7 +266,7 @@ def test_path_params_drag_mouse(self, client: Kernel) -> None: path=[[0, 0], [0, 0]], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_mouse_position(self, client: Kernel) -> None: computer = client.browsers.computer.get_mouse_position( @@ -274,7 +274,7 @@ def test_method_get_mouse_position(self, client: Kernel) -> None: ) assert_matches_type(ComputerGetMousePositionResponse, computer, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_get_mouse_position(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.get_mouse_position( @@ -286,7 +286,7 @@ def test_raw_response_get_mouse_position(self, client: Kernel) -> None: computer = response.parse() assert_matches_type(ComputerGetMousePositionResponse, computer, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_get_mouse_position(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.get_mouse_position( @@ -300,7 +300,7 @@ def test_streaming_response_get_mouse_position(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_get_mouse_position(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -308,7 +308,7 @@ def test_path_params_get_mouse_position(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_move_mouse(self, client: Kernel) -> None: computer = client.browsers.computer.move_mouse( @@ -318,7 +318,7 @@ def test_method_move_mouse(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_move_mouse_with_all_params(self, client: Kernel) -> None: computer = client.browsers.computer.move_mouse( @@ -329,7 +329,7 @@ def test_method_move_mouse_with_all_params(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_move_mouse(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.move_mouse( @@ -343,7 +343,7 @@ def test_raw_response_move_mouse(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_move_mouse(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.move_mouse( @@ -359,7 +359,7 @@ def test_streaming_response_move_mouse(self, client: Kernel) -> 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_move_mouse(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -369,7 +369,7 @@ def test_path_params_move_mouse(self, client: Kernel) -> None: y=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_press_key(self, client: Kernel) -> None: computer = client.browsers.computer.press_key( @@ -378,7 +378,7 @@ def test_method_press_key(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_press_key_with_all_params(self, client: Kernel) -> None: computer = client.browsers.computer.press_key( @@ -389,7 +389,7 @@ def test_method_press_key_with_all_params(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_press_key(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.press_key( @@ -402,7 +402,7 @@ def test_raw_response_press_key(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_press_key(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.press_key( @@ -417,7 +417,7 @@ def test_streaming_response_press_key(self, client: Kernel) -> 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_press_key(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -426,7 +426,7 @@ def test_path_params_press_key(self, client: Kernel) -> None: keys=["string"], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_scroll(self, client: Kernel) -> None: computer = client.browsers.computer.scroll( @@ -436,7 +436,7 @@ def test_method_scroll(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_scroll_with_all_params(self, client: Kernel) -> None: computer = client.browsers.computer.scroll( @@ -449,7 +449,7 @@ def test_method_scroll_with_all_params(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_scroll(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.scroll( @@ -463,7 +463,7 @@ def test_raw_response_scroll(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_scroll(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.scroll( @@ -479,7 +479,7 @@ def test_streaming_response_scroll(self, client: Kernel) -> 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_scroll(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -489,7 +489,7 @@ def test_path_params_scroll(self, client: Kernel) -> None: y=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_set_cursor_visibility(self, client: Kernel) -> None: computer = client.browsers.computer.set_cursor_visibility( @@ -498,7 +498,7 @@ def test_method_set_cursor_visibility(self, client: Kernel) -> None: ) assert_matches_type(ComputerSetCursorVisibilityResponse, computer, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_set_cursor_visibility(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.set_cursor_visibility( @@ -511,7 +511,7 @@ def test_raw_response_set_cursor_visibility(self, client: Kernel) -> None: computer = response.parse() assert_matches_type(ComputerSetCursorVisibilityResponse, computer, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_set_cursor_visibility(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.set_cursor_visibility( @@ -526,7 +526,7 @@ def test_streaming_response_set_cursor_visibility(self, client: Kernel) -> 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_set_cursor_visibility(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -535,7 +535,7 @@ def test_path_params_set_cursor_visibility(self, client: Kernel) -> None: hidden=True, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_type_text(self, client: Kernel) -> None: computer = client.browsers.computer.type_text( @@ -544,7 +544,7 @@ def test_method_type_text(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_type_text_with_all_params(self, client: Kernel) -> None: computer = client.browsers.computer.type_text( @@ -554,7 +554,7 @@ def test_method_type_text_with_all_params(self, client: Kernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_type_text(self, client: Kernel) -> None: response = client.browsers.computer.with_raw_response.type_text( @@ -567,7 +567,7 @@ def test_raw_response_type_text(self, client: Kernel) -> None: computer = response.parse() assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_type_text(self, client: Kernel) -> None: with client.browsers.computer.with_streaming_response.type_text( @@ -582,7 +582,7 @@ def test_streaming_response_type_text(self, client: Kernel) -> 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_type_text(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -597,7 +597,7 @@ class TestAsyncComputer: "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_batch(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.batch( @@ -606,7 +606,7 @@ async def test_method_batch(self, async_client: AsyncKernel) -> None: ) assert computer 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_batch(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.batch( @@ -619,7 +619,7 @@ async def test_raw_response_batch(self, async_client: AsyncKernel) -> None: computer = await response.parse() assert computer 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_batch(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.batch( @@ -634,7 +634,7 @@ async def test_streaming_response_batch(self, async_client: AsyncKernel) -> 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_batch(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -715,7 +715,7 @@ async def test_path_params_capture_screenshot(self, async_client: AsyncKernel) - id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_click_mouse(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.click_mouse( @@ -725,7 +725,7 @@ async def test_method_click_mouse(self, async_client: AsyncKernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_click_mouse_with_all_params(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.click_mouse( @@ -739,7 +739,7 @@ async def test_method_click_mouse_with_all_params(self, async_client: AsyncKerne ) assert computer 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_click_mouse(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.click_mouse( @@ -753,7 +753,7 @@ async def test_raw_response_click_mouse(self, async_client: AsyncKernel) -> None computer = await response.parse() assert computer 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_click_mouse(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.click_mouse( @@ -769,7 +769,7 @@ async def test_streaming_response_click_mouse(self, async_client: AsyncKernel) - 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_click_mouse(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -779,7 +779,7 @@ async def test_path_params_click_mouse(self, async_client: AsyncKernel) -> None: y=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_drag_mouse(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.drag_mouse( @@ -788,7 +788,7 @@ async def test_method_drag_mouse(self, async_client: AsyncKernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_drag_mouse_with_all_params(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.drag_mouse( @@ -802,7 +802,7 @@ async def test_method_drag_mouse_with_all_params(self, async_client: AsyncKernel ) assert computer 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_drag_mouse(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.drag_mouse( @@ -815,7 +815,7 @@ async def test_raw_response_drag_mouse(self, async_client: AsyncKernel) -> None: computer = await response.parse() assert computer 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_drag_mouse(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.drag_mouse( @@ -830,7 +830,7 @@ async def test_streaming_response_drag_mouse(self, async_client: AsyncKernel) -> 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_drag_mouse(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -839,7 +839,7 @@ async def test_path_params_drag_mouse(self, async_client: AsyncKernel) -> None: path=[[0, 0], [0, 0]], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_mouse_position(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.get_mouse_position( @@ -847,7 +847,7 @@ async def test_method_get_mouse_position(self, async_client: AsyncKernel) -> Non ) assert_matches_type(ComputerGetMousePositionResponse, computer, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_get_mouse_position(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.get_mouse_position( @@ -859,7 +859,7 @@ async def test_raw_response_get_mouse_position(self, async_client: AsyncKernel) computer = await response.parse() assert_matches_type(ComputerGetMousePositionResponse, computer, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_get_mouse_position(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.get_mouse_position( @@ -873,7 +873,7 @@ async def test_streaming_response_get_mouse_position(self, async_client: AsyncKe assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_get_mouse_position(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -881,7 +881,7 @@ async def test_path_params_get_mouse_position(self, async_client: AsyncKernel) - "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_move_mouse(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.move_mouse( @@ -891,7 +891,7 @@ async def test_method_move_mouse(self, async_client: AsyncKernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_move_mouse_with_all_params(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.move_mouse( @@ -902,7 +902,7 @@ async def test_method_move_mouse_with_all_params(self, async_client: AsyncKernel ) assert computer 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_move_mouse(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.move_mouse( @@ -916,7 +916,7 @@ async def test_raw_response_move_mouse(self, async_client: AsyncKernel) -> None: computer = await response.parse() assert computer 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_move_mouse(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.move_mouse( @@ -932,7 +932,7 @@ async def test_streaming_response_move_mouse(self, async_client: AsyncKernel) -> 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_move_mouse(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -942,7 +942,7 @@ async def test_path_params_move_mouse(self, async_client: AsyncKernel) -> None: y=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_press_key(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.press_key( @@ -951,7 +951,7 @@ async def test_method_press_key(self, async_client: AsyncKernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_press_key_with_all_params(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.press_key( @@ -962,7 +962,7 @@ async def test_method_press_key_with_all_params(self, async_client: AsyncKernel) ) assert computer 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_press_key(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.press_key( @@ -975,7 +975,7 @@ async def test_raw_response_press_key(self, async_client: AsyncKernel) -> None: computer = await response.parse() assert computer 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_press_key(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.press_key( @@ -990,7 +990,7 @@ async def test_streaming_response_press_key(self, async_client: AsyncKernel) -> 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_press_key(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -999,7 +999,7 @@ async def test_path_params_press_key(self, async_client: AsyncKernel) -> None: keys=["string"], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_scroll(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.scroll( @@ -1009,7 +1009,7 @@ async def test_method_scroll(self, async_client: AsyncKernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_scroll_with_all_params(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.scroll( @@ -1022,7 +1022,7 @@ async def test_method_scroll_with_all_params(self, async_client: AsyncKernel) -> ) assert computer 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_scroll(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.scroll( @@ -1036,7 +1036,7 @@ async def test_raw_response_scroll(self, async_client: AsyncKernel) -> None: computer = await response.parse() assert computer 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_scroll(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.scroll( @@ -1052,7 +1052,7 @@ async def test_streaming_response_scroll(self, async_client: AsyncKernel) -> 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_scroll(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1062,7 +1062,7 @@ async def test_path_params_scroll(self, async_client: AsyncKernel) -> None: y=0, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_set_cursor_visibility(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.set_cursor_visibility( @@ -1071,7 +1071,7 @@ async def test_method_set_cursor_visibility(self, async_client: AsyncKernel) -> ) assert_matches_type(ComputerSetCursorVisibilityResponse, computer, 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_set_cursor_visibility(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.set_cursor_visibility( @@ -1084,7 +1084,7 @@ async def test_raw_response_set_cursor_visibility(self, async_client: AsyncKerne computer = await response.parse() assert_matches_type(ComputerSetCursorVisibilityResponse, computer, 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_set_cursor_visibility(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.set_cursor_visibility( @@ -1099,7 +1099,7 @@ async def test_streaming_response_set_cursor_visibility(self, async_client: Asyn 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_set_cursor_visibility(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1108,7 +1108,7 @@ async def test_path_params_set_cursor_visibility(self, async_client: AsyncKernel hidden=True, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_type_text(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.type_text( @@ -1117,7 +1117,7 @@ async def test_method_type_text(self, async_client: AsyncKernel) -> None: ) assert computer is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_type_text_with_all_params(self, async_client: AsyncKernel) -> None: computer = await async_client.browsers.computer.type_text( @@ -1127,7 +1127,7 @@ async def test_method_type_text_with_all_params(self, async_client: AsyncKernel) ) assert computer 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_type_text(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.computer.with_raw_response.type_text( @@ -1140,7 +1140,7 @@ async def test_raw_response_type_text(self, async_client: AsyncKernel) -> None: computer = await response.parse() assert computer 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_type_text(self, async_client: AsyncKernel) -> None: async with async_client.browsers.computer.with_streaming_response.type_text( @@ -1155,7 +1155,7 @@ async def test_streaming_response_type_text(self, async_client: AsyncKernel) -> 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_type_text(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/test_fs.py b/tests/api_resources/browsers/test_fs.py index 38e07b78..1d314e3a 100644 --- a/tests/api_resources/browsers/test_fs.py +++ b/tests/api_resources/browsers/test_fs.py @@ -28,7 +28,7 @@ class TestFs: 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_directory(self, client: Kernel) -> None: f = client.browsers.fs.create_directory( @@ -37,7 +37,7 @@ def test_method_create_directory(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_directory_with_all_params(self, client: Kernel) -> None: f = client.browsers.fs.create_directory( @@ -47,7 +47,7 @@ def test_method_create_directory_with_all_params(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create_directory(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.create_directory( @@ -60,7 +60,7 @@ def test_raw_response_create_directory(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create_directory(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.create_directory( @@ -75,7 +75,7 @@ def test_streaming_response_create_directory(self, client: Kernel) -> 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_directory(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -84,7 +84,7 @@ def test_path_params_create_directory(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_directory(self, client: Kernel) -> None: f = client.browsers.fs.delete_directory( @@ -93,7 +93,7 @@ def test_method_delete_directory(self, client: Kernel) -> None: ) assert f 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_directory(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.delete_directory( @@ -106,7 +106,7 @@ def test_raw_response_delete_directory(self, client: Kernel) -> None: f = response.parse() assert f 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_directory(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.delete_directory( @@ -121,7 +121,7 @@ def test_streaming_response_delete_directory(self, client: Kernel) -> 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_directory(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -130,7 +130,7 @@ def test_path_params_delete_directory(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_delete_file(self, client: Kernel) -> None: f = client.browsers.fs.delete_file( @@ -139,7 +139,7 @@ def test_method_delete_file(self, client: Kernel) -> None: ) assert f 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_file(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.delete_file( @@ -152,7 +152,7 @@ def test_raw_response_delete_file(self, client: Kernel) -> None: f = response.parse() assert f 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_file(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.delete_file( @@ -167,7 +167,7 @@ def test_streaming_response_delete_file(self, client: Kernel) -> 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_file(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -230,7 +230,7 @@ def test_path_params_download_dir_zip(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_file_info(self, client: Kernel) -> None: f = client.browsers.fs.file_info( @@ -239,7 +239,7 @@ def test_method_file_info(self, client: Kernel) -> None: ) assert_matches_type(FFileInfoResponse, f, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_file_info(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.file_info( @@ -252,7 +252,7 @@ def test_raw_response_file_info(self, client: Kernel) -> None: f = response.parse() assert_matches_type(FFileInfoResponse, f, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_file_info(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.file_info( @@ -267,7 +267,7 @@ def test_streaming_response_file_info(self, client: Kernel) -> 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_file_info(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -276,7 +276,7 @@ def test_path_params_file_info(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_files(self, client: Kernel) -> None: f = client.browsers.fs.list_files( @@ -285,7 +285,7 @@ def test_method_list_files(self, client: Kernel) -> None: ) assert_matches_type(FListFilesResponse, f, 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_files(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.list_files( @@ -298,7 +298,7 @@ def test_raw_response_list_files(self, client: Kernel) -> None: f = response.parse() assert_matches_type(FListFilesResponse, f, 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_files(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.list_files( @@ -313,7 +313,7 @@ def test_streaming_response_list_files(self, client: Kernel) -> 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_files(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -322,7 +322,7 @@ def test_path_params_list_files(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_move(self, client: Kernel) -> None: f = client.browsers.fs.move( @@ -332,7 +332,7 @@ def test_method_move(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_move(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.move( @@ -346,7 +346,7 @@ def test_raw_response_move(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_move(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.move( @@ -362,7 +362,7 @@ def test_streaming_response_move(self, client: Kernel) -> 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_move(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -426,7 +426,7 @@ def test_path_params_read_file(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_set_file_permissions(self, client: Kernel) -> None: f = client.browsers.fs.set_file_permissions( @@ -436,7 +436,7 @@ def test_method_set_file_permissions(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_set_file_permissions_with_all_params(self, client: Kernel) -> None: f = client.browsers.fs.set_file_permissions( @@ -448,7 +448,7 @@ def test_method_set_file_permissions_with_all_params(self, client: Kernel) -> No ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_set_file_permissions(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.set_file_permissions( @@ -462,7 +462,7 @@ def test_raw_response_set_file_permissions(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_set_file_permissions(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.set_file_permissions( @@ -478,7 +478,7 @@ def test_streaming_response_set_file_permissions(self, client: Kernel) -> 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_set_file_permissions(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -488,7 +488,7 @@ def test_path_params_set_file_permissions(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_upload(self, client: Kernel) -> None: f = client.browsers.fs.upload( @@ -502,7 +502,7 @@ def test_method_upload(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_upload(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.upload( @@ -520,7 +520,7 @@ def test_raw_response_upload(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_upload(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.upload( @@ -540,7 +540,7 @@ def test_streaming_response_upload(self, client: Kernel) -> 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_upload(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -554,7 +554,7 @@ def test_path_params_upload(self, client: Kernel) -> None: ], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_upload_zip(self, client: Kernel) -> None: f = client.browsers.fs.upload_zip( @@ -564,7 +564,7 @@ def test_method_upload_zip(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_upload_zip(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.upload_zip( @@ -578,7 +578,7 @@ def test_raw_response_upload_zip(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_upload_zip(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.upload_zip( @@ -594,7 +594,7 @@ def test_streaming_response_upload_zip(self, client: Kernel) -> 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_upload_zip(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -604,7 +604,7 @@ def test_path_params_upload_zip(self, client: Kernel) -> None: zip_file=b"raw file contents", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_write_file(self, client: Kernel) -> None: f = client.browsers.fs.write_file( @@ -614,7 +614,7 @@ def test_method_write_file(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_write_file_with_all_params(self, client: Kernel) -> None: f = client.browsers.fs.write_file( @@ -625,7 +625,7 @@ def test_method_write_file_with_all_params(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_write_file(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.write_file( @@ -639,7 +639,7 @@ def test_raw_response_write_file(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_write_file(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.write_file( @@ -655,7 +655,7 @@ def test_streaming_response_write_file(self, client: Kernel) -> 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_write_file(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -671,7 +671,7 @@ class TestAsyncFs: "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_directory(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.create_directory( @@ -680,7 +680,7 @@ async def test_method_create_directory(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_directory_with_all_params(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.create_directory( @@ -690,7 +690,7 @@ async def test_method_create_directory_with_all_params(self, async_client: Async ) assert f 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_create_directory(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.create_directory( @@ -703,7 +703,7 @@ async def test_raw_response_create_directory(self, async_client: AsyncKernel) -> f = await response.parse() assert f 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_create_directory(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.create_directory( @@ -718,7 +718,7 @@ async def test_streaming_response_create_directory(self, async_client: AsyncKern 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_directory(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -727,7 +727,7 @@ async def test_path_params_create_directory(self, async_client: AsyncKernel) -> path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_directory(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.delete_directory( @@ -736,7 +736,7 @@ async def test_method_delete_directory(self, async_client: AsyncKernel) -> None: ) assert f 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_directory(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.delete_directory( @@ -749,7 +749,7 @@ async def test_raw_response_delete_directory(self, async_client: AsyncKernel) -> f = await response.parse() assert f 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_directory(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.delete_directory( @@ -764,7 +764,7 @@ async def test_streaming_response_delete_directory(self, async_client: AsyncKern 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_directory(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -773,7 +773,7 @@ async def test_path_params_delete_directory(self, async_client: AsyncKernel) -> path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_delete_file(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.delete_file( @@ -782,7 +782,7 @@ async def test_method_delete_file(self, async_client: AsyncKernel) -> None: ) assert f 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_file(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.delete_file( @@ -795,7 +795,7 @@ async def test_raw_response_delete_file(self, async_client: AsyncKernel) -> None f = await response.parse() assert f 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_file(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.delete_file( @@ -810,7 +810,7 @@ async def test_streaming_response_delete_file(self, async_client: AsyncKernel) - 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_file(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -873,7 +873,7 @@ async def test_path_params_download_dir_zip(self, async_client: AsyncKernel) -> path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_file_info(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.file_info( @@ -882,7 +882,7 @@ async def test_method_file_info(self, async_client: AsyncKernel) -> None: ) assert_matches_type(FFileInfoResponse, f, 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_file_info(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.file_info( @@ -895,7 +895,7 @@ async def test_raw_response_file_info(self, async_client: AsyncKernel) -> None: f = await response.parse() assert_matches_type(FFileInfoResponse, f, 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_file_info(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.file_info( @@ -910,7 +910,7 @@ async def test_streaming_response_file_info(self, async_client: AsyncKernel) -> 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_file_info(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -919,7 +919,7 @@ async def test_path_params_file_info(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_files(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.list_files( @@ -928,7 +928,7 @@ async def test_method_list_files(self, async_client: AsyncKernel) -> None: ) assert_matches_type(FListFilesResponse, f, 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_files(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.list_files( @@ -941,7 +941,7 @@ async def test_raw_response_list_files(self, async_client: AsyncKernel) -> None: f = await response.parse() assert_matches_type(FListFilesResponse, f, 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_files(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.list_files( @@ -956,7 +956,7 @@ async def test_streaming_response_list_files(self, async_client: AsyncKernel) -> 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_files(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -965,7 +965,7 @@ async def test_path_params_list_files(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_move(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.move( @@ -975,7 +975,7 @@ async def test_method_move(self, async_client: AsyncKernel) -> None: ) assert f 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_move(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.move( @@ -989,7 +989,7 @@ async def test_raw_response_move(self, async_client: AsyncKernel) -> None: f = await response.parse() assert f 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_move(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.move( @@ -1005,7 +1005,7 @@ async def test_streaming_response_move(self, async_client: AsyncKernel) -> 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_move(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1069,7 +1069,7 @@ async def test_path_params_read_file(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_set_file_permissions(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.set_file_permissions( @@ -1079,7 +1079,7 @@ async def test_method_set_file_permissions(self, async_client: AsyncKernel) -> N ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_set_file_permissions_with_all_params(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.set_file_permissions( @@ -1091,7 +1091,7 @@ async def test_method_set_file_permissions_with_all_params(self, async_client: A ) assert f 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_set_file_permissions(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.set_file_permissions( @@ -1105,7 +1105,7 @@ async def test_raw_response_set_file_permissions(self, async_client: AsyncKernel f = await response.parse() assert f 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_set_file_permissions(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.set_file_permissions( @@ -1121,7 +1121,7 @@ async def test_streaming_response_set_file_permissions(self, async_client: Async assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_set_file_permissions(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1131,7 +1131,7 @@ async def test_path_params_set_file_permissions(self, async_client: AsyncKernel) path="/J!", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_upload(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.upload( @@ -1145,7 +1145,7 @@ async def test_method_upload(self, async_client: AsyncKernel) -> None: ) assert f 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_upload(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.upload( @@ -1163,7 +1163,7 @@ async def test_raw_response_upload(self, async_client: AsyncKernel) -> None: f = await response.parse() assert f 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_upload(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.upload( @@ -1183,7 +1183,7 @@ async def test_streaming_response_upload(self, async_client: AsyncKernel) -> 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_upload(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1197,7 +1197,7 @@ async def test_path_params_upload(self, async_client: AsyncKernel) -> None: ], ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_upload_zip(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.upload_zip( @@ -1207,7 +1207,7 @@ async def test_method_upload_zip(self, async_client: AsyncKernel) -> None: ) assert f 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_upload_zip(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.upload_zip( @@ -1221,7 +1221,7 @@ async def test_raw_response_upload_zip(self, async_client: AsyncKernel) -> None: f = await response.parse() assert f 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_upload_zip(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.upload_zip( @@ -1237,7 +1237,7 @@ async def test_streaming_response_upload_zip(self, async_client: AsyncKernel) -> 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_upload_zip(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1247,7 +1247,7 @@ async def test_path_params_upload_zip(self, async_client: AsyncKernel) -> None: zip_file=b"raw file contents", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_write_file(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.write_file( @@ -1257,7 +1257,7 @@ async def test_method_write_file(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_write_file_with_all_params(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.write_file( @@ -1268,7 +1268,7 @@ async def test_method_write_file_with_all_params(self, async_client: AsyncKernel ) assert f 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_write_file(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.with_raw_response.write_file( @@ -1282,7 +1282,7 @@ async def test_raw_response_write_file(self, async_client: AsyncKernel) -> None: f = await response.parse() assert f 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_write_file(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.with_streaming_response.write_file( @@ -1298,7 +1298,7 @@ async def test_streaming_response_write_file(self, async_client: AsyncKernel) -> 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_write_file(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/test_logs.py b/tests/api_resources/browsers/test_logs.py index 6aac62f6..27268b82 100644 --- a/tests/api_resources/browsers/test_logs.py +++ b/tests/api_resources/browsers/test_logs.py @@ -15,7 +15,7 @@ class TestLogs: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_stream(self, client: Kernel) -> None: log_stream = client.browsers.logs.stream( @@ -24,7 +24,7 @@ def test_method_stream(self, client: Kernel) -> None: ) log_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_stream_with_all_params(self, client: Kernel) -> None: log_stream = client.browsers.logs.stream( @@ -36,7 +36,7 @@ def test_method_stream_with_all_params(self, client: Kernel) -> None: ) log_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_stream(self, client: Kernel) -> None: response = client.browsers.logs.with_raw_response.stream( @@ -48,7 +48,7 @@ def test_raw_response_stream(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_stream(self, client: Kernel) -> None: with client.browsers.logs.with_streaming_response.stream( @@ -63,7 +63,7 @@ def test_streaming_response_stream(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_stream(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -78,7 +78,7 @@ class TestAsyncLogs: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_stream(self, async_client: AsyncKernel) -> None: log_stream = await async_client.browsers.logs.stream( @@ -87,7 +87,7 @@ async def test_method_stream(self, async_client: AsyncKernel) -> None: ) await log_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_stream_with_all_params(self, async_client: AsyncKernel) -> None: log_stream = await async_client.browsers.logs.stream( @@ -99,7 +99,7 @@ async def test_method_stream_with_all_params(self, async_client: AsyncKernel) -> ) await log_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_stream(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.logs.with_raw_response.stream( @@ -111,7 +111,7 @@ async def test_raw_response_stream(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_stream(self, async_client: AsyncKernel) -> None: async with async_client.browsers.logs.with_streaming_response.stream( @@ -126,7 +126,7 @@ async def test_streaming_response_stream(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_stream(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/test_playwright.py b/tests/api_resources/browsers/test_playwright.py index cb79410c..fd91b832 100644 --- a/tests/api_resources/browsers/test_playwright.py +++ b/tests/api_resources/browsers/test_playwright.py @@ -17,7 +17,7 @@ class TestPlaywright: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_execute(self, client: Kernel) -> None: playwright = client.browsers.playwright.execute( @@ -26,7 +26,7 @@ def test_method_execute(self, client: Kernel) -> None: ) assert_matches_type(PlaywrightExecuteResponse, playwright, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_execute_with_all_params(self, client: Kernel) -> None: playwright = client.browsers.playwright.execute( @@ -36,7 +36,7 @@ def test_method_execute_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(PlaywrightExecuteResponse, playwright, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_execute(self, client: Kernel) -> None: response = client.browsers.playwright.with_raw_response.execute( @@ -49,7 +49,7 @@ def test_raw_response_execute(self, client: Kernel) -> None: playwright = response.parse() assert_matches_type(PlaywrightExecuteResponse, playwright, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_execute(self, client: Kernel) -> None: with client.browsers.playwright.with_streaming_response.execute( @@ -64,7 +64,7 @@ def test_streaming_response_execute(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_execute(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -79,7 +79,7 @@ class TestAsyncPlaywright: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_execute(self, async_client: AsyncKernel) -> None: playwright = await async_client.browsers.playwright.execute( @@ -88,7 +88,7 @@ async def test_method_execute(self, async_client: AsyncKernel) -> None: ) assert_matches_type(PlaywrightExecuteResponse, playwright, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_execute_with_all_params(self, async_client: AsyncKernel) -> None: playwright = await async_client.browsers.playwright.execute( @@ -98,7 +98,7 @@ async def test_method_execute_with_all_params(self, async_client: AsyncKernel) - ) assert_matches_type(PlaywrightExecuteResponse, playwright, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_execute(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.playwright.with_raw_response.execute( @@ -111,7 +111,7 @@ async def test_raw_response_execute(self, async_client: AsyncKernel) -> None: playwright = await response.parse() assert_matches_type(PlaywrightExecuteResponse, playwright, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_execute(self, async_client: AsyncKernel) -> None: async with async_client.browsers.playwright.with_streaming_response.execute( @@ -126,7 +126,7 @@ async def test_streaming_response_execute(self, async_client: AsyncKernel) -> No assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_execute(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/test_process.py b/tests/api_resources/browsers/test_process.py index 3c645fa4..0418d219 100644 --- a/tests/api_resources/browsers/test_process.py +++ b/tests/api_resources/browsers/test_process.py @@ -24,7 +24,7 @@ class TestProcess: 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_exec(self, client: Kernel) -> None: process = client.browsers.process.exec( @@ -33,7 +33,7 @@ def test_method_exec(self, client: Kernel) -> None: ) assert_matches_type(ProcessExecResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_exec_with_all_params(self, client: Kernel) -> None: process = client.browsers.process.exec( @@ -48,7 +48,7 @@ def test_method_exec_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ProcessExecResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_exec(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.exec( @@ -61,7 +61,7 @@ def test_raw_response_exec(self, client: Kernel) -> None: process = response.parse() assert_matches_type(ProcessExecResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_exec(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.exec( @@ -76,7 +76,7 @@ def test_streaming_response_exec(self, client: Kernel) -> 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_exec(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -85,7 +85,7 @@ def test_path_params_exec(self, client: Kernel) -> None: command="command", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_kill(self, client: Kernel) -> None: process = client.browsers.process.kill( @@ -95,7 +95,7 @@ def test_method_kill(self, client: Kernel) -> None: ) assert_matches_type(ProcessKillResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_kill(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.kill( @@ -109,7 +109,7 @@ def test_raw_response_kill(self, client: Kernel) -> None: process = response.parse() assert_matches_type(ProcessKillResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_kill(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.kill( @@ -125,7 +125,7 @@ def test_streaming_response_kill(self, client: Kernel) -> 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_kill(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -142,7 +142,7 @@ def test_path_params_kill(self, client: Kernel) -> None: signal="TERM", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_resize(self, client: Kernel) -> None: process = client.browsers.process.resize( @@ -153,7 +153,7 @@ def test_method_resize(self, client: Kernel) -> None: ) assert_matches_type(ProcessResizeResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_resize(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.resize( @@ -168,7 +168,7 @@ def test_raw_response_resize(self, client: Kernel) -> None: process = response.parse() assert_matches_type(ProcessResizeResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_resize(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.resize( @@ -185,7 +185,7 @@ def test_streaming_response_resize(self, client: Kernel) -> 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_resize(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -204,7 +204,7 @@ def test_path_params_resize(self, client: Kernel) -> None: rows=1, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_spawn(self, client: Kernel) -> None: process = client.browsers.process.spawn( @@ -213,7 +213,7 @@ def test_method_spawn(self, client: Kernel) -> None: ) assert_matches_type(ProcessSpawnResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_spawn_with_all_params(self, client: Kernel) -> None: process = client.browsers.process.spawn( @@ -231,7 +231,7 @@ def test_method_spawn_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ProcessSpawnResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_spawn(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.spawn( @@ -244,7 +244,7 @@ def test_raw_response_spawn(self, client: Kernel) -> None: process = response.parse() assert_matches_type(ProcessSpawnResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_spawn(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.spawn( @@ -259,7 +259,7 @@ def test_streaming_response_spawn(self, client: Kernel) -> 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_spawn(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -268,7 +268,7 @@ def test_path_params_spawn(self, client: Kernel) -> None: command="command", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_status(self, client: Kernel) -> None: process = client.browsers.process.status( @@ -277,7 +277,7 @@ def test_method_status(self, client: Kernel) -> None: ) assert_matches_type(ProcessStatusResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_status(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.status( @@ -290,7 +290,7 @@ def test_raw_response_status(self, client: Kernel) -> None: process = response.parse() assert_matches_type(ProcessStatusResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_status(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.status( @@ -305,7 +305,7 @@ def test_streaming_response_status(self, client: Kernel) -> 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_status(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -320,7 +320,7 @@ def test_path_params_status(self, client: Kernel) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_stdin(self, client: Kernel) -> None: process = client.browsers.process.stdin( @@ -330,7 +330,7 @@ def test_method_stdin(self, client: Kernel) -> None: ) assert_matches_type(ProcessStdinResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_stdin(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.stdin( @@ -344,7 +344,7 @@ def test_raw_response_stdin(self, client: Kernel) -> None: process = response.parse() assert_matches_type(ProcessStdinResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_stdin(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.stdin( @@ -360,7 +360,7 @@ def test_streaming_response_stdin(self, client: Kernel) -> 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_stdin(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -377,7 +377,7 @@ def test_path_params_stdin(self, client: Kernel) -> None: data_b64="data_b64", ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_stdout_stream(self, client: Kernel) -> None: process_stream = client.browsers.process.stdout_stream( @@ -386,7 +386,7 @@ def test_method_stdout_stream(self, client: Kernel) -> None: ) process_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_stdout_stream(self, client: Kernel) -> None: response = client.browsers.process.with_raw_response.stdout_stream( @@ -398,7 +398,7 @@ def test_raw_response_stdout_stream(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_stdout_stream(self, client: Kernel) -> None: with client.browsers.process.with_streaming_response.stdout_stream( @@ -413,7 +413,7 @@ def test_streaming_response_stdout_stream(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_stdout_stream(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -434,7 +434,7 @@ class TestAsyncProcess: "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_exec(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.exec( @@ -443,7 +443,7 @@ async def test_method_exec(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProcessExecResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_exec_with_all_params(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.exec( @@ -458,7 +458,7 @@ async def test_method_exec_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(ProcessExecResponse, process, 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_exec(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.exec( @@ -471,7 +471,7 @@ async def test_raw_response_exec(self, async_client: AsyncKernel) -> None: process = await response.parse() assert_matches_type(ProcessExecResponse, process, 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_exec(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.exec( @@ -486,7 +486,7 @@ async def test_streaming_response_exec(self, async_client: AsyncKernel) -> 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_exec(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -495,7 +495,7 @@ async def test_path_params_exec(self, async_client: AsyncKernel) -> None: command="command", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_kill(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.kill( @@ -505,7 +505,7 @@ async def test_method_kill(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProcessKillResponse, process, 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_kill(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.kill( @@ -519,7 +519,7 @@ async def test_raw_response_kill(self, async_client: AsyncKernel) -> None: process = await response.parse() assert_matches_type(ProcessKillResponse, process, 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_kill(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.kill( @@ -535,7 +535,7 @@ async def test_streaming_response_kill(self, async_client: AsyncKernel) -> 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_kill(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -552,7 +552,7 @@ async def test_path_params_kill(self, async_client: AsyncKernel) -> None: signal="TERM", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_resize(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.resize( @@ -563,7 +563,7 @@ async def test_method_resize(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProcessResizeResponse, process, 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_resize(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.resize( @@ -578,7 +578,7 @@ async def test_raw_response_resize(self, async_client: AsyncKernel) -> None: process = await response.parse() assert_matches_type(ProcessResizeResponse, process, 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_resize(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.resize( @@ -595,7 +595,7 @@ async def test_streaming_response_resize(self, async_client: AsyncKernel) -> 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_resize(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -614,7 +614,7 @@ async def test_path_params_resize(self, async_client: AsyncKernel) -> None: rows=1, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_spawn(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.spawn( @@ -623,7 +623,7 @@ async def test_method_spawn(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProcessSpawnResponse, process, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_spawn_with_all_params(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.spawn( @@ -641,7 +641,7 @@ async def test_method_spawn_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(ProcessSpawnResponse, process, 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_spawn(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.spawn( @@ -654,7 +654,7 @@ async def test_raw_response_spawn(self, async_client: AsyncKernel) -> None: process = await response.parse() assert_matches_type(ProcessSpawnResponse, process, 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_spawn(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.spawn( @@ -669,7 +669,7 @@ async def test_streaming_response_spawn(self, async_client: AsyncKernel) -> 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_spawn(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -678,7 +678,7 @@ async def test_path_params_spawn(self, async_client: AsyncKernel) -> None: command="command", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_status(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.status( @@ -687,7 +687,7 @@ async def test_method_status(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProcessStatusResponse, process, 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_status(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.status( @@ -700,7 +700,7 @@ async def test_raw_response_status(self, async_client: AsyncKernel) -> None: process = await response.parse() assert_matches_type(ProcessStatusResponse, process, 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_status(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.status( @@ -715,7 +715,7 @@ async def test_streaming_response_status(self, async_client: AsyncKernel) -> 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_status(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -730,7 +730,7 @@ async def test_path_params_status(self, async_client: AsyncKernel) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_stdin(self, async_client: AsyncKernel) -> None: process = await async_client.browsers.process.stdin( @@ -740,7 +740,7 @@ async def test_method_stdin(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProcessStdinResponse, process, 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_stdin(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.stdin( @@ -754,7 +754,7 @@ async def test_raw_response_stdin(self, async_client: AsyncKernel) -> None: process = await response.parse() assert_matches_type(ProcessStdinResponse, process, 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_stdin(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.stdin( @@ -770,7 +770,7 @@ async def test_streaming_response_stdin(self, async_client: AsyncKernel) -> 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_stdin(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -787,7 +787,7 @@ async def test_path_params_stdin(self, async_client: AsyncKernel) -> None: data_b64="data_b64", ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_stdout_stream(self, async_client: AsyncKernel) -> None: process_stream = await async_client.browsers.process.stdout_stream( @@ -796,7 +796,7 @@ async def test_method_stdout_stream(self, async_client: AsyncKernel) -> None: ) await process_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_stdout_stream(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.process.with_raw_response.stdout_stream( @@ -808,7 +808,7 @@ async def test_raw_response_stdout_stream(self, async_client: AsyncKernel) -> No stream = await response.parse() await stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_stdout_stream(self, async_client: AsyncKernel) -> None: async with async_client.browsers.process.with_streaming_response.stdout_stream( @@ -823,7 +823,7 @@ async def test_streaming_response_stdout_stream(self, async_client: AsyncKernel) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_stdout_stream(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/browsers/test_replays.py b/tests/api_resources/browsers/test_replays.py index df1fed56..72e986c1 100644 --- a/tests/api_resources/browsers/test_replays.py +++ b/tests/api_resources/browsers/test_replays.py @@ -25,7 +25,7 @@ class TestReplays: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: replay = client.browsers.replays.list( @@ -33,7 +33,7 @@ def test_method_list(self, client: Kernel) -> None: ) assert_matches_type(ReplayListResponse, replay, 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: Kernel) -> None: response = client.browsers.replays.with_raw_response.list( @@ -45,7 +45,7 @@ def test_raw_response_list(self, client: Kernel) -> None: replay = response.parse() assert_matches_type(ReplayListResponse, replay, 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: Kernel) -> None: with client.browsers.replays.with_streaming_response.list( @@ -59,7 +59,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -127,7 +127,7 @@ def test_path_params_download(self, client: Kernel) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_start(self, client: Kernel) -> None: replay = client.browsers.replays.start( @@ -135,7 +135,7 @@ def test_method_start(self, client: Kernel) -> None: ) assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_start_with_all_params(self, client: Kernel) -> None: replay = client.browsers.replays.start( @@ -145,7 +145,7 @@ def test_method_start_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_start(self, client: Kernel) -> None: response = client.browsers.replays.with_raw_response.start( @@ -157,7 +157,7 @@ def test_raw_response_start(self, client: Kernel) -> None: replay = response.parse() assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_start(self, client: Kernel) -> None: with client.browsers.replays.with_streaming_response.start( @@ -171,7 +171,7 @@ def test_streaming_response_start(self, client: Kernel) -> 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_start(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -179,7 +179,7 @@ def test_path_params_start(self, client: Kernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_stop(self, client: Kernel) -> None: replay = client.browsers.replays.stop( @@ -188,7 +188,7 @@ def test_method_stop(self, client: Kernel) -> None: ) assert replay is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_stop(self, client: Kernel) -> None: response = client.browsers.replays.with_raw_response.stop( @@ -201,7 +201,7 @@ def test_raw_response_stop(self, client: Kernel) -> None: replay = response.parse() assert replay is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_stop(self, client: Kernel) -> None: with client.browsers.replays.with_streaming_response.stop( @@ -216,7 +216,7 @@ def test_streaming_response_stop(self, client: Kernel) -> 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_stop(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -237,7 +237,7 @@ class TestAsyncReplays: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.list( @@ -245,7 +245,7 @@ async def test_method_list(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ReplayListResponse, replay, 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: AsyncKernel) -> None: response = await async_client.browsers.replays.with_raw_response.list( @@ -257,7 +257,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: replay = await response.parse() assert_matches_type(ReplayListResponse, replay, 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: AsyncKernel) -> None: async with async_client.browsers.replays.with_streaming_response.list( @@ -271,7 +271,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -339,7 +339,7 @@ async def test_path_params_download(self, async_client: AsyncKernel) -> None: id="id", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_start(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.start( @@ -347,7 +347,7 @@ async def test_method_start(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_start_with_all_params(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.start( @@ -357,7 +357,7 @@ async def test_method_start_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(ReplayStartResponse, replay, 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_start(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.replays.with_raw_response.start( @@ -369,7 +369,7 @@ async def test_raw_response_start(self, async_client: AsyncKernel) -> None: replay = await response.parse() assert_matches_type(ReplayStartResponse, replay, 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_start(self, async_client: AsyncKernel) -> None: async with async_client.browsers.replays.with_streaming_response.start( @@ -383,7 +383,7 @@ async def test_streaming_response_start(self, async_client: AsyncKernel) -> 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_start(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -391,7 +391,7 @@ async def test_path_params_start(self, async_client: AsyncKernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_stop(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.stop( @@ -400,7 +400,7 @@ async def test_method_stop(self, async_client: AsyncKernel) -> None: ) assert replay 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_stop(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.replays.with_raw_response.stop( @@ -413,7 +413,7 @@ async def test_raw_response_stop(self, async_client: AsyncKernel) -> None: replay = await response.parse() assert replay 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_stop(self, async_client: AsyncKernel) -> None: async with async_client.browsers.replays.with_streaming_response.stop( @@ -428,7 +428,7 @@ async def test_streaming_response_stop(self, async_client: AsyncKernel) -> 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_stop(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_apps.py b/tests/api_resources/test_apps.py index 7475bcd5..c8629fa0 100644 --- a/tests/api_resources/test_apps.py +++ b/tests/api_resources/test_apps.py @@ -18,13 +18,13 @@ class TestApps: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: app = client.apps.list() assert_matches_type(SyncOffsetPagination[AppListResponse], app, 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: Kernel) -> None: app = client.apps.list( @@ -35,7 +35,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SyncOffsetPagination[AppListResponse], app, 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: Kernel) -> None: response = client.apps.with_raw_response.list() @@ -45,7 +45,7 @@ def test_raw_response_list(self, client: Kernel) -> None: app = response.parse() assert_matches_type(SyncOffsetPagination[AppListResponse], app, 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: Kernel) -> None: with client.apps.with_streaming_response.list() as response: @@ -63,13 +63,13 @@ class TestAsyncApps: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: app = await async_client.apps.list() assert_matches_type(AsyncOffsetPagination[AppListResponse], app, 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: AsyncKernel) -> None: app = await async_client.apps.list( @@ -80,7 +80,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AsyncOffsetPagination[AppListResponse], app, 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: AsyncKernel) -> None: response = await async_client.apps.with_raw_response.list() @@ -90,7 +90,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: app = await response.parse() assert_matches_type(AsyncOffsetPagination[AppListResponse], app, 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: AsyncKernel) -> None: async with async_client.apps.with_streaming_response.list() as response: diff --git a/tests/api_resources/test_browser_pools.py b/tests/api_resources/test_browser_pools.py index 6a8f164e..c7e1a477 100644 --- a/tests/api_resources/test_browser_pools.py +++ b/tests/api_resources/test_browser_pools.py @@ -21,7 +21,7 @@ class TestBrowserPools: 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: Kernel) -> None: browser_pool = client.browser_pools.create( @@ -29,7 +29,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: browser_pool = client.browser_pools.create( @@ -60,7 +60,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: response = client.browser_pools.with_raw_response.create( @@ -72,7 +72,7 @@ def test_raw_response_create(self, client: Kernel) -> None: browser_pool = response.parse() assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: with client.browser_pools.with_streaming_response.create( @@ -86,7 +86,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: browser_pool = client.browser_pools.retrieve( @@ -94,7 +94,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: response = client.browser_pools.with_raw_response.retrieve( @@ -106,7 +106,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: browser_pool = response.parse() assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: with client.browser_pools.with_streaming_response.retrieve( @@ -120,7 +120,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -128,7 +128,7 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: browser_pool = client.browser_pools.update( @@ -137,7 +137,7 @@ def test_method_update(self, client: Kernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: browser_pool = client.browser_pools.update( @@ -170,7 +170,7 @@ def test_method_update_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: response = client.browser_pools.with_raw_response.update( @@ -183,7 +183,7 @@ def test_raw_response_update(self, client: Kernel) -> None: browser_pool = response.parse() assert_matches_type(BrowserPool, browser_pool, 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: Kernel) -> None: with client.browser_pools.with_streaming_response.update( @@ -198,7 +198,7 @@ def test_streaming_response_update(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -207,13 +207,13 @@ def test_path_params_update(self, client: Kernel) -> None: size=10, ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: browser_pool = client.browser_pools.list() assert_matches_type(BrowserPoolListResponse, browser_pool, 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: Kernel) -> None: response = client.browser_pools.with_raw_response.list() @@ -223,7 +223,7 @@ def test_raw_response_list(self, client: Kernel) -> None: browser_pool = response.parse() assert_matches_type(BrowserPoolListResponse, browser_pool, 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: Kernel) -> None: with client.browser_pools.with_streaming_response.list() as response: @@ -235,7 +235,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: browser_pool = client.browser_pools.delete( @@ -243,7 +243,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert browser_pool 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: Kernel) -> None: browser_pool = client.browser_pools.delete( @@ -252,7 +252,7 @@ def test_method_delete_with_all_params(self, client: Kernel) -> None: ) assert browser_pool 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: Kernel) -> None: response = client.browser_pools.with_raw_response.delete( @@ -264,7 +264,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: browser_pool = response.parse() assert browser_pool 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: Kernel) -> None: with client.browser_pools.with_streaming_response.delete( @@ -278,7 +278,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -286,7 +286,7 @@ def test_path_params_delete(self, client: Kernel) -> None: id_or_name="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_acquire(self, client: Kernel) -> None: browser_pool = client.browser_pools.acquire( @@ -294,7 +294,7 @@ def test_method_acquire(self, client: Kernel) -> None: ) assert_matches_type(BrowserPoolAcquireResponse, browser_pool, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_acquire_with_all_params(self, client: Kernel) -> None: browser_pool = client.browser_pools.acquire( @@ -303,7 +303,7 @@ def test_method_acquire_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(BrowserPoolAcquireResponse, browser_pool, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_acquire(self, client: Kernel) -> None: response = client.browser_pools.with_raw_response.acquire( @@ -315,7 +315,7 @@ def test_raw_response_acquire(self, client: Kernel) -> None: browser_pool = response.parse() assert_matches_type(BrowserPoolAcquireResponse, browser_pool, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_acquire(self, client: Kernel) -> None: with client.browser_pools.with_streaming_response.acquire( @@ -329,7 +329,7 @@ def test_streaming_response_acquire(self, client: Kernel) -> 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_acquire(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -337,7 +337,7 @@ def test_path_params_acquire(self, client: Kernel) -> None: id_or_name="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_flush(self, client: Kernel) -> None: browser_pool = client.browser_pools.flush( @@ -345,7 +345,7 @@ def test_method_flush(self, client: Kernel) -> None: ) assert browser_pool is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_flush(self, client: Kernel) -> None: response = client.browser_pools.with_raw_response.flush( @@ -357,7 +357,7 @@ def test_raw_response_flush(self, client: Kernel) -> None: browser_pool = response.parse() assert browser_pool is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_flush(self, client: Kernel) -> None: with client.browser_pools.with_streaming_response.flush( @@ -371,7 +371,7 @@ def test_streaming_response_flush(self, client: Kernel) -> 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_flush(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -379,7 +379,7 @@ def test_path_params_flush(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_release(self, client: Kernel) -> None: browser_pool = client.browser_pools.release( @@ -388,7 +388,7 @@ def test_method_release(self, client: Kernel) -> None: ) assert browser_pool is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_release_with_all_params(self, client: Kernel) -> None: browser_pool = client.browser_pools.release( @@ -398,7 +398,7 @@ def test_method_release_with_all_params(self, client: Kernel) -> None: ) assert browser_pool is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_release(self, client: Kernel) -> None: response = client.browser_pools.with_raw_response.release( @@ -411,7 +411,7 @@ def test_raw_response_release(self, client: Kernel) -> None: browser_pool = response.parse() assert browser_pool is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_release(self, client: Kernel) -> None: with client.browser_pools.with_streaming_response.release( @@ -426,7 +426,7 @@ def test_streaming_response_release(self, client: Kernel) -> 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_release(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -441,7 +441,7 @@ class TestAsyncBrowserPools: "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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.create( @@ -449,7 +449,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.create( @@ -480,7 +480,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.create( @@ -492,7 +492,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.create( @@ -506,7 +506,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.retrieve( @@ -514,7 +514,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.retrieve( @@ -526,7 +526,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.retrieve( @@ -540,7 +540,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -548,7 +548,7 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.update( @@ -557,7 +557,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.update( @@ -590,7 +590,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.update( @@ -603,7 +603,7 @@ async def test_raw_response_update(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert_matches_type(BrowserPool, browser_pool, 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: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.update( @@ -618,7 +618,7 @@ async def test_streaming_response_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -627,13 +627,13 @@ async def test_path_params_update(self, async_client: AsyncKernel) -> None: size=10, ) - @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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.list() assert_matches_type(BrowserPoolListResponse, browser_pool, 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: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.list() @@ -643,7 +643,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert_matches_type(BrowserPoolListResponse, browser_pool, 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: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.list() as response: @@ -655,7 +655,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.delete( @@ -663,7 +663,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert browser_pool 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: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.delete( @@ -672,7 +672,7 @@ async def test_method_delete_with_all_params(self, async_client: AsyncKernel) -> ) assert browser_pool 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: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.delete( @@ -684,7 +684,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert browser_pool 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: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.delete( @@ -698,7 +698,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -706,7 +706,7 @@ async def test_path_params_delete(self, async_client: AsyncKernel) -> None: id_or_name="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_acquire(self, async_client: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.acquire( @@ -714,7 +714,7 @@ async def test_method_acquire(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserPoolAcquireResponse, browser_pool, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_acquire_with_all_params(self, async_client: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.acquire( @@ -723,7 +723,7 @@ async def test_method_acquire_with_all_params(self, async_client: AsyncKernel) - ) assert_matches_type(BrowserPoolAcquireResponse, browser_pool, 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_acquire(self, async_client: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.acquire( @@ -735,7 +735,7 @@ async def test_raw_response_acquire(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert_matches_type(BrowserPoolAcquireResponse, browser_pool, 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_acquire(self, async_client: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.acquire( @@ -749,7 +749,7 @@ async def test_streaming_response_acquire(self, async_client: AsyncKernel) -> No 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_acquire(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -757,7 +757,7 @@ async def test_path_params_acquire(self, async_client: AsyncKernel) -> None: id_or_name="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_flush(self, async_client: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.flush( @@ -765,7 +765,7 @@ async def test_method_flush(self, async_client: AsyncKernel) -> None: ) assert browser_pool 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_flush(self, async_client: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.flush( @@ -777,7 +777,7 @@ async def test_raw_response_flush(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert browser_pool 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_flush(self, async_client: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.flush( @@ -791,7 +791,7 @@ async def test_streaming_response_flush(self, async_client: AsyncKernel) -> 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_flush(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -799,7 +799,7 @@ async def test_path_params_flush(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_release(self, async_client: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.release( @@ -808,7 +808,7 @@ async def test_method_release(self, async_client: AsyncKernel) -> None: ) assert browser_pool is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_release_with_all_params(self, async_client: AsyncKernel) -> None: browser_pool = await async_client.browser_pools.release( @@ -818,7 +818,7 @@ async def test_method_release_with_all_params(self, async_client: AsyncKernel) - ) assert browser_pool 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_release(self, async_client: AsyncKernel) -> None: response = await async_client.browser_pools.with_raw_response.release( @@ -831,7 +831,7 @@ async def test_raw_response_release(self, async_client: AsyncKernel) -> None: browser_pool = await response.parse() assert browser_pool 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_release(self, async_client: AsyncKernel) -> None: async with async_client.browser_pools.with_streaming_response.release( @@ -846,7 +846,7 @@ async def test_streaming_response_release(self, async_client: AsyncKernel) -> No 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_release(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): diff --git a/tests/api_resources/test_browsers.py b/tests/api_resources/test_browsers.py index fc2d4d09..c0319df9 100644 --- a/tests/api_resources/test_browsers.py +++ b/tests/api_resources/test_browsers.py @@ -25,13 +25,13 @@ class TestBrowsers: 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: Kernel) -> None: browser = client.browsers.create() assert_matches_type(BrowserCreateResponse, browser, 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: Kernel) -> None: browser = client.browsers.create( @@ -62,7 +62,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(BrowserCreateResponse, browser, 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: Kernel) -> None: response = client.browsers.with_raw_response.create() @@ -72,7 +72,7 @@ def test_raw_response_create(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(BrowserCreateResponse, browser, 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: Kernel) -> None: with client.browsers.with_streaming_response.create() as response: @@ -84,7 +84,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: browser = client.browsers.retrieve( @@ -92,7 +92,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(BrowserRetrieveResponse, browser, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_retrieve_with_all_params(self, client: Kernel) -> None: browser = client.browsers.retrieve( @@ -101,7 +101,7 @@ def test_method_retrieve_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(BrowserRetrieveResponse, browser, 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: Kernel) -> None: response = client.browsers.with_raw_response.retrieve( @@ -113,7 +113,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(BrowserRetrieveResponse, browser, 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: Kernel) -> None: with client.browsers.with_streaming_response.retrieve( @@ -127,7 +127,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -135,7 +135,7 @@ def test_path_params_retrieve(self, client: Kernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_update(self, client: Kernel) -> None: browser = client.browsers.update( @@ -143,7 +143,7 @@ def test_method_update(self, client: Kernel) -> None: ) assert_matches_type(BrowserUpdateResponse, browser, 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: Kernel) -> None: browser = client.browsers.update( @@ -162,7 +162,7 @@ def test_method_update_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(BrowserUpdateResponse, browser, 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: Kernel) -> None: response = client.browsers.with_raw_response.update( @@ -174,7 +174,7 @@ def test_raw_response_update(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(BrowserUpdateResponse, browser, 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: Kernel) -> None: with client.browsers.with_streaming_response.update( @@ -188,7 +188,7 @@ def test_streaming_response_update(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -196,13 +196,13 @@ def test_path_params_update(self, client: Kernel) -> 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: Kernel) -> None: browser = client.browsers.list() assert_matches_type(SyncOffsetPagination[BrowserListResponse], browser, 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: Kernel) -> None: browser = client.browsers.list( @@ -213,7 +213,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SyncOffsetPagination[BrowserListResponse], browser, 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: Kernel) -> None: response = client.browsers.with_raw_response.list() @@ -223,7 +223,7 @@ def test_raw_response_list(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(SyncOffsetPagination[BrowserListResponse], browser, 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: Kernel) -> None: with client.browsers.with_streaming_response.list() as response: @@ -235,7 +235,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: with pytest.warns(DeprecationWarning): @@ -245,7 +245,7 @@ def test_method_delete(self, client: Kernel) -> None: assert browser 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: Kernel) -> None: with pytest.warns(DeprecationWarning): @@ -258,7 +258,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: browser = response.parse() assert browser 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: Kernel) -> None: with pytest.warns(DeprecationWarning): @@ -273,7 +273,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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_by_id(self, client: Kernel) -> None: browser = client.browsers.delete_by_id( @@ -281,7 +281,7 @@ def test_method_delete_by_id(self, client: Kernel) -> None: ) assert browser 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_by_id(self, client: Kernel) -> None: response = client.browsers.with_raw_response.delete_by_id( @@ -293,7 +293,7 @@ def test_raw_response_delete_by_id(self, client: Kernel) -> None: browser = response.parse() assert browser 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_by_id(self, client: Kernel) -> None: with client.browsers.with_streaming_response.delete_by_id( @@ -307,7 +307,7 @@ def test_streaming_response_delete_by_id(self, client: Kernel) -> 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_by_id(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -315,7 +315,7 @@ def test_path_params_delete_by_id(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_load_extensions(self, client: Kernel) -> None: browser = client.browsers.load_extensions( @@ -329,7 +329,7 @@ def test_method_load_extensions(self, client: Kernel) -> None: ) assert browser is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_load_extensions(self, client: Kernel) -> None: response = client.browsers.with_raw_response.load_extensions( @@ -347,7 +347,7 @@ def test_raw_response_load_extensions(self, client: Kernel) -> None: browser = response.parse() assert browser is None - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_load_extensions(self, client: Kernel) -> None: with client.browsers.with_streaming_response.load_extensions( @@ -367,7 +367,7 @@ def test_streaming_response_load_extensions(self, client: Kernel) -> 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_load_extensions(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -387,13 +387,13 @@ class TestAsyncBrowsers: "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: AsyncKernel) -> None: browser = await async_client.browsers.create() assert_matches_type(BrowserCreateResponse, browser, 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: AsyncKernel) -> None: browser = await async_client.browsers.create( @@ -424,7 +424,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(BrowserCreateResponse, browser, 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: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.create() @@ -434,7 +434,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert_matches_type(BrowserCreateResponse, browser, 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: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.create() as response: @@ -446,7 +446,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: browser = await async_client.browsers.retrieve( @@ -454,7 +454,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserRetrieveResponse, browser, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_retrieve_with_all_params(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.retrieve( @@ -463,7 +463,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncKernel) ) assert_matches_type(BrowserRetrieveResponse, browser, 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: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.retrieve( @@ -475,7 +475,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert_matches_type(BrowserRetrieveResponse, browser, 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: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.retrieve( @@ -489,7 +489,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -497,7 +497,7 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: id="", ) - @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: AsyncKernel) -> None: browser = await async_client.browsers.update( @@ -505,7 +505,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserUpdateResponse, browser, 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: AsyncKernel) -> None: browser = await async_client.browsers.update( @@ -524,7 +524,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(BrowserUpdateResponse, browser, 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: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.update( @@ -536,7 +536,7 @@ async def test_raw_response_update(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert_matches_type(BrowserUpdateResponse, browser, 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: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.update( @@ -550,7 +550,7 @@ async def test_streaming_response_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -558,13 +558,13 @@ async def test_path_params_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: browser = await async_client.browsers.list() assert_matches_type(AsyncOffsetPagination[BrowserListResponse], browser, 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: AsyncKernel) -> None: browser = await async_client.browsers.list( @@ -575,7 +575,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AsyncOffsetPagination[BrowserListResponse], browser, 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: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.list() @@ -585,7 +585,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert_matches_type(AsyncOffsetPagination[BrowserListResponse], browser, 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: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.list() as response: @@ -597,7 +597,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.warns(DeprecationWarning): @@ -607,7 +607,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: assert browser 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: AsyncKernel) -> None: with pytest.warns(DeprecationWarning): @@ -620,7 +620,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert browser 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: AsyncKernel) -> None: with pytest.warns(DeprecationWarning): @@ -635,7 +635,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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_delete_by_id(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.delete_by_id( @@ -643,7 +643,7 @@ async def test_method_delete_by_id(self, async_client: AsyncKernel) -> None: ) assert browser 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_by_id(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.delete_by_id( @@ -655,7 +655,7 @@ async def test_raw_response_delete_by_id(self, async_client: AsyncKernel) -> Non browser = await response.parse() assert browser 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_by_id(self, async_client: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.delete_by_id( @@ -669,7 +669,7 @@ async def test_streaming_response_delete_by_id(self, async_client: AsyncKernel) 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_by_id(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -677,7 +677,7 @@ async def test_path_params_delete_by_id(self, async_client: AsyncKernel) -> None "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_load_extensions(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.load_extensions( @@ -691,7 +691,7 @@ async def test_method_load_extensions(self, async_client: AsyncKernel) -> None: ) assert browser 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_load_extensions(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.load_extensions( @@ -709,7 +709,7 @@ async def test_raw_response_load_extensions(self, async_client: AsyncKernel) -> browser = await response.parse() assert browser 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_load_extensions(self, async_client: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.load_extensions( @@ -729,7 +729,7 @@ async def test_streaming_response_load_extensions(self, async_client: AsyncKerne 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_load_extensions(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_credential_providers.py b/tests/api_resources/test_credential_providers.py index f110523f..93f44145 100644 --- a/tests/api_resources/test_credential_providers.py +++ b/tests/api_resources/test_credential_providers.py @@ -22,7 +22,7 @@ class TestCredentialProviders: 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: Kernel) -> None: credential_provider = client.credential_providers.create( @@ -32,7 +32,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: credential_provider = client.credential_providers.create( @@ -43,7 +43,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: response = client.credential_providers.with_raw_response.create( @@ -57,7 +57,7 @@ def test_raw_response_create(self, client: Kernel) -> None: credential_provider = response.parse() assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: with client.credential_providers.with_streaming_response.create( @@ -73,7 +73,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: credential_provider = client.credential_providers.retrieve( @@ -81,7 +81,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: response = client.credential_providers.with_raw_response.retrieve( @@ -93,7 +93,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: credential_provider = response.parse() assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: with client.credential_providers.with_streaming_response.retrieve( @@ -107,7 +107,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -115,7 +115,7 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: credential_provider = client.credential_providers.update( @@ -123,7 +123,7 @@ def test_method_update(self, client: Kernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: credential_provider = client.credential_providers.update( @@ -136,7 +136,7 @@ def test_method_update_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: response = client.credential_providers.with_raw_response.update( @@ -148,7 +148,7 @@ def test_raw_response_update(self, client: Kernel) -> None: credential_provider = response.parse() assert_matches_type(CredentialProvider, credential_provider, 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: Kernel) -> None: with client.credential_providers.with_streaming_response.update( @@ -162,7 +162,7 @@ def test_streaming_response_update(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -170,13 +170,13 @@ def test_path_params_update(self, client: Kernel) -> 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: Kernel) -> None: credential_provider = client.credential_providers.list() assert_matches_type(CredentialProviderListResponse, credential_provider, 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: Kernel) -> None: response = client.credential_providers.with_raw_response.list() @@ -186,7 +186,7 @@ def test_raw_response_list(self, client: Kernel) -> None: credential_provider = response.parse() assert_matches_type(CredentialProviderListResponse, credential_provider, 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: Kernel) -> None: with client.credential_providers.with_streaming_response.list() as response: @@ -198,7 +198,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: credential_provider = client.credential_providers.delete( @@ -206,7 +206,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert credential_provider 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: Kernel) -> None: response = client.credential_providers.with_raw_response.delete( @@ -218,7 +218,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: credential_provider = response.parse() assert credential_provider 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: Kernel) -> None: with client.credential_providers.with_streaming_response.delete( @@ -232,7 +232,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -240,7 +240,7 @@ def test_path_params_delete(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_items(self, client: Kernel) -> None: credential_provider = client.credential_providers.list_items( @@ -248,7 +248,7 @@ def test_method_list_items(self, client: Kernel) -> None: ) assert_matches_type(CredentialProviderListItemsResponse, credential_provider, 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_items(self, client: Kernel) -> None: response = client.credential_providers.with_raw_response.list_items( @@ -260,7 +260,7 @@ def test_raw_response_list_items(self, client: Kernel) -> None: credential_provider = response.parse() assert_matches_type(CredentialProviderListItemsResponse, credential_provider, 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_items(self, client: Kernel) -> None: with client.credential_providers.with_streaming_response.list_items( @@ -274,7 +274,7 @@ def test_streaming_response_list_items(self, client: Kernel) -> 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_items(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -282,7 +282,7 @@ def test_path_params_list_items(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_test(self, client: Kernel) -> None: credential_provider = client.credential_providers.test( @@ -290,7 +290,7 @@ def test_method_test(self, client: Kernel) -> None: ) assert_matches_type(CredentialProviderTestResult, credential_provider, 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: Kernel) -> None: response = client.credential_providers.with_raw_response.test( @@ -302,7 +302,7 @@ def test_raw_response_test(self, client: Kernel) -> None: credential_provider = response.parse() assert_matches_type(CredentialProviderTestResult, credential_provider, 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: Kernel) -> None: with client.credential_providers.with_streaming_response.test( @@ -316,7 +316,7 @@ def test_streaming_response_test(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -330,7 +330,7 @@ class TestAsyncCredentialProviders: "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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.create( @@ -340,7 +340,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.create( @@ -351,7 +351,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.create( @@ -365,7 +365,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.create( @@ -381,7 +381,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.retrieve( @@ -389,7 +389,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.retrieve( @@ -401,7 +401,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.retrieve( @@ -415,7 +415,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -423,7 +423,7 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.update( @@ -431,7 +431,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None: ) assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.update( @@ -444,7 +444,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.update( @@ -456,7 +456,7 @@ async def test_raw_response_update(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert_matches_type(CredentialProvider, credential_provider, 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: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.update( @@ -470,7 +470,7 @@ async def test_streaming_response_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -478,13 +478,13 @@ async def test_path_params_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.list() assert_matches_type(CredentialProviderListResponse, credential_provider, 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: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.list() @@ -494,7 +494,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert_matches_type(CredentialProviderListResponse, credential_provider, 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: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.list() as response: @@ -506,7 +506,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.delete( @@ -514,7 +514,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert credential_provider 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: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.delete( @@ -526,7 +526,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert credential_provider 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: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.delete( @@ -540,7 +540,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -548,7 +548,7 @@ async def test_path_params_delete(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_items(self, async_client: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.list_items( @@ -556,7 +556,7 @@ async def test_method_list_items(self, async_client: AsyncKernel) -> None: ) assert_matches_type(CredentialProviderListItemsResponse, credential_provider, 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_items(self, async_client: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.list_items( @@ -568,7 +568,7 @@ async def test_raw_response_list_items(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert_matches_type(CredentialProviderListItemsResponse, credential_provider, 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_items(self, async_client: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.list_items( @@ -582,7 +582,7 @@ async def test_streaming_response_list_items(self, async_client: AsyncKernel) -> 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_items(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -590,7 +590,7 @@ async def test_path_params_list_items(self, async_client: AsyncKernel) -> None: "", ) - @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: AsyncKernel) -> None: credential_provider = await async_client.credential_providers.test( @@ -598,7 +598,7 @@ async def test_method_test(self, async_client: AsyncKernel) -> None: ) assert_matches_type(CredentialProviderTestResult, credential_provider, 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: AsyncKernel) -> None: response = await async_client.credential_providers.with_raw_response.test( @@ -610,7 +610,7 @@ async def test_raw_response_test(self, async_client: AsyncKernel) -> None: credential_provider = await response.parse() assert_matches_type(CredentialProviderTestResult, credential_provider, 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: AsyncKernel) -> None: async with async_client.credential_providers.with_streaming_response.test( @@ -624,7 +624,7 @@ async def test_streaming_response_test(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_credentials.py b/tests/api_resources/test_credentials.py index b6098685..ff932bef 100644 --- a/tests/api_resources/test_credentials.py +++ b/tests/api_resources/test_credentials.py @@ -21,7 +21,7 @@ class TestCredentials: 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: Kernel) -> None: credential = client.credentials.create( @@ -34,7 +34,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(Credential, credential, 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: Kernel) -> None: credential = client.credentials.create( @@ -49,7 +49,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(Credential, credential, 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: Kernel) -> None: response = client.credentials.with_raw_response.create( @@ -66,7 +66,7 @@ def test_raw_response_create(self, client: Kernel) -> None: credential = response.parse() assert_matches_type(Credential, credential, 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: Kernel) -> None: with client.credentials.with_streaming_response.create( @@ -85,7 +85,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: credential = client.credentials.retrieve( @@ -93,7 +93,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(Credential, credential, 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: Kernel) -> None: response = client.credentials.with_raw_response.retrieve( @@ -105,7 +105,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: credential = response.parse() assert_matches_type(Credential, credential, 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: Kernel) -> None: with client.credentials.with_streaming_response.retrieve( @@ -119,7 +119,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -127,7 +127,7 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: credential = client.credentials.update( @@ -135,7 +135,7 @@ def test_method_update(self, client: Kernel) -> None: ) assert_matches_type(Credential, credential, 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: Kernel) -> None: credential = client.credentials.update( @@ -150,7 +150,7 @@ def test_method_update_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(Credential, credential, 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: Kernel) -> None: response = client.credentials.with_raw_response.update( @@ -162,7 +162,7 @@ def test_raw_response_update(self, client: Kernel) -> None: credential = response.parse() assert_matches_type(Credential, credential, 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: Kernel) -> None: with client.credentials.with_streaming_response.update( @@ -176,7 +176,7 @@ def test_streaming_response_update(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -184,13 +184,13 @@ def test_path_params_update(self, client: Kernel) -> None: id_or_name="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: credential = client.credentials.list() assert_matches_type(SyncOffsetPagination[Credential], credential, 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: Kernel) -> None: credential = client.credentials.list( @@ -200,7 +200,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SyncOffsetPagination[Credential], credential, 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: Kernel) -> None: response = client.credentials.with_raw_response.list() @@ -210,7 +210,7 @@ def test_raw_response_list(self, client: Kernel) -> None: credential = response.parse() assert_matches_type(SyncOffsetPagination[Credential], credential, 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: Kernel) -> None: with client.credentials.with_streaming_response.list() as response: @@ -222,7 +222,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: credential = client.credentials.delete( @@ -230,7 +230,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert credential 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: Kernel) -> None: response = client.credentials.with_raw_response.delete( @@ -242,7 +242,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: credential = response.parse() assert credential 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: Kernel) -> None: with client.credentials.with_streaming_response.delete( @@ -256,7 +256,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -264,7 +264,7 @@ def test_path_params_delete(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_totp_code(self, client: Kernel) -> None: credential = client.credentials.totp_code( @@ -272,7 +272,7 @@ def test_method_totp_code(self, client: Kernel) -> None: ) assert_matches_type(CredentialTotpCodeResponse, credential, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_totp_code(self, client: Kernel) -> None: response = client.credentials.with_raw_response.totp_code( @@ -284,7 +284,7 @@ def test_raw_response_totp_code(self, client: Kernel) -> None: credential = response.parse() assert_matches_type(CredentialTotpCodeResponse, credential, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_totp_code(self, client: Kernel) -> None: with client.credentials.with_streaming_response.totp_code( @@ -298,7 +298,7 @@ def test_streaming_response_totp_code(self, client: Kernel) -> 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_totp_code(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -312,7 +312,7 @@ class TestAsyncCredentials: "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: AsyncKernel) -> None: credential = await async_client.credentials.create( @@ -325,7 +325,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: credential = await async_client.credentials.create( @@ -340,7 +340,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: response = await async_client.credentials.with_raw_response.create( @@ -357,7 +357,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: credential = await response.parse() assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: async with async_client.credentials.with_streaming_response.create( @@ -376,7 +376,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential = await async_client.credentials.retrieve( @@ -384,7 +384,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: response = await async_client.credentials.with_raw_response.retrieve( @@ -396,7 +396,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: credential = await response.parse() assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: async with async_client.credentials.with_streaming_response.retrieve( @@ -410,7 +410,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -418,7 +418,7 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential = await async_client.credentials.update( @@ -426,7 +426,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None: ) assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: credential = await async_client.credentials.update( @@ -441,7 +441,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: response = await async_client.credentials.with_raw_response.update( @@ -453,7 +453,7 @@ async def test_raw_response_update(self, async_client: AsyncKernel) -> None: credential = await response.parse() assert_matches_type(Credential, credential, 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: AsyncKernel) -> None: async with async_client.credentials.with_streaming_response.update( @@ -467,7 +467,7 @@ async def test_streaming_response_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -475,13 +475,13 @@ async def test_path_params_update(self, async_client: AsyncKernel) -> None: id_or_name="", ) - @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: AsyncKernel) -> None: credential = await async_client.credentials.list() assert_matches_type(AsyncOffsetPagination[Credential], credential, 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: AsyncKernel) -> None: credential = await async_client.credentials.list( @@ -491,7 +491,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AsyncOffsetPagination[Credential], credential, 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: AsyncKernel) -> None: response = await async_client.credentials.with_raw_response.list() @@ -501,7 +501,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: credential = await response.parse() assert_matches_type(AsyncOffsetPagination[Credential], credential, 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: AsyncKernel) -> None: async with async_client.credentials.with_streaming_response.list() as response: @@ -513,7 +513,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: credential = await async_client.credentials.delete( @@ -521,7 +521,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert credential 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: AsyncKernel) -> None: response = await async_client.credentials.with_raw_response.delete( @@ -533,7 +533,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: credential = await response.parse() assert credential 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: AsyncKernel) -> None: async with async_client.credentials.with_streaming_response.delete( @@ -547,7 +547,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -555,7 +555,7 @@ async def test_path_params_delete(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_totp_code(self, async_client: AsyncKernel) -> None: credential = await async_client.credentials.totp_code( @@ -563,7 +563,7 @@ async def test_method_totp_code(self, async_client: AsyncKernel) -> None: ) assert_matches_type(CredentialTotpCodeResponse, credential, 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_totp_code(self, async_client: AsyncKernel) -> None: response = await async_client.credentials.with_raw_response.totp_code( @@ -575,7 +575,7 @@ async def test_raw_response_totp_code(self, async_client: AsyncKernel) -> None: credential = await response.parse() assert_matches_type(CredentialTotpCodeResponse, credential, 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_totp_code(self, async_client: AsyncKernel) -> None: async with async_client.credentials.with_streaming_response.totp_code( @@ -589,7 +589,7 @@ async def test_streaming_response_totp_code(self, async_client: AsyncKernel) -> 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_totp_code(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): diff --git a/tests/api_resources/test_deployments.py b/tests/api_resources/test_deployments.py index 6c3354ef..d98ac242 100644 --- a/tests/api_resources/test_deployments.py +++ b/tests/api_resources/test_deployments.py @@ -22,13 +22,13 @@ class TestDeployments: 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: Kernel) -> None: deployment = client.deployments.create() assert_matches_type(DeploymentCreateResponse, deployment, 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: Kernel) -> None: deployment = client.deployments.create( @@ -52,7 +52,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(DeploymentCreateResponse, deployment, 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: Kernel) -> None: response = client.deployments.with_raw_response.create() @@ -62,7 +62,7 @@ def test_raw_response_create(self, client: Kernel) -> None: deployment = response.parse() assert_matches_type(DeploymentCreateResponse, deployment, 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: Kernel) -> None: with client.deployments.with_streaming_response.create() as response: @@ -74,7 +74,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: deployment = client.deployments.retrieve( @@ -82,7 +82,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(DeploymentRetrieveResponse, deployment, 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: Kernel) -> None: response = client.deployments.with_raw_response.retrieve( @@ -94,7 +94,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: deployment = response.parse() assert_matches_type(DeploymentRetrieveResponse, deployment, 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: Kernel) -> None: with client.deployments.with_streaming_response.retrieve( @@ -108,7 +108,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -116,13 +116,13 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: deployment = client.deployments.list() assert_matches_type(SyncOffsetPagination[DeploymentListResponse], deployment, 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: Kernel) -> None: deployment = client.deployments.list( @@ -132,7 +132,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SyncOffsetPagination[DeploymentListResponse], deployment, 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: Kernel) -> None: response = client.deployments.with_raw_response.list() @@ -142,7 +142,7 @@ def test_raw_response_list(self, client: Kernel) -> None: deployment = response.parse() assert_matches_type(SyncOffsetPagination[DeploymentListResponse], deployment, 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: Kernel) -> None: with client.deployments.with_streaming_response.list() as response: @@ -154,7 +154,49 @@ def test_streaming_response_list(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_method_delete(self, client: Kernel) -> None: + deployment = client.deployments.delete( + "id", + ) + assert deployment is None + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_raw_response_delete(self, client: Kernel) -> None: + response = client.deployments.with_raw_response.delete( + "id", + ) + + assert response.is_closed is True + assert response.http_request.headers.get("X-Stainless-Lang") == "python" + deployment = response.parse() + assert deployment is None + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_streaming_response_delete(self, client: Kernel) -> None: + with client.deployments.with_streaming_response.delete( + "id", + ) as response: + assert not response.is_closed + assert response.http_request.headers.get("X-Stainless-Lang") == "python" + + deployment = response.parse() + assert deployment is None + + assert cast(Any, response.is_closed) is True + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + def test_path_params_delete(self, client: Kernel) -> None: + with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): + client.deployments.with_raw_response.delete( + "", + ) + + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_follow(self, client: Kernel) -> None: deployment_stream = client.deployments.follow( @@ -162,7 +204,7 @@ def test_method_follow(self, client: Kernel) -> None: ) deployment_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_follow_with_all_params(self, client: Kernel) -> None: deployment_stream = client.deployments.follow( @@ -171,7 +213,7 @@ def test_method_follow_with_all_params(self, client: Kernel) -> None: ) deployment_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_follow(self, client: Kernel) -> None: response = client.deployments.with_raw_response.follow( @@ -182,7 +224,7 @@ def test_raw_response_follow(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_follow(self, client: Kernel) -> None: with client.deployments.with_streaming_response.follow( @@ -196,7 +238,7 @@ def test_streaming_response_follow(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_follow(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -210,13 +252,13 @@ class TestAsyncDeployments: "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: AsyncKernel) -> None: deployment = await async_client.deployments.create() assert_matches_type(DeploymentCreateResponse, deployment, 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: AsyncKernel) -> None: deployment = await async_client.deployments.create( @@ -240,7 +282,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(DeploymentCreateResponse, deployment, 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: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.create() @@ -250,7 +292,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: deployment = await response.parse() assert_matches_type(DeploymentCreateResponse, deployment, 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: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.create() as response: @@ -262,7 +304,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: deployment = await async_client.deployments.retrieve( @@ -270,7 +312,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(DeploymentRetrieveResponse, deployment, 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: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.retrieve( @@ -282,7 +324,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: deployment = await response.parse() assert_matches_type(DeploymentRetrieveResponse, deployment, 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: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.retrieve( @@ -296,7 +338,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -304,13 +346,13 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: deployment = await async_client.deployments.list() assert_matches_type(AsyncOffsetPagination[DeploymentListResponse], deployment, 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: AsyncKernel) -> None: deployment = await async_client.deployments.list( @@ -320,7 +362,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AsyncOffsetPagination[DeploymentListResponse], deployment, 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: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.list() @@ -330,7 +372,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: deployment = await response.parse() assert_matches_type(AsyncOffsetPagination[DeploymentListResponse], deployment, 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: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.list() as response: @@ -342,7 +384,49 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_method_delete(self, async_client: AsyncKernel) -> None: + deployment = await async_client.deployments.delete( + "id", + ) + assert deployment is None + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: + response = await async_client.deployments.with_raw_response.delete( + "id", + ) + + assert response.is_closed is True + assert response.http_request.headers.get("X-Stainless-Lang") == "python" + deployment = await response.parse() + assert deployment is None + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_streaming_response_delete(self, async_client: AsyncKernel) -> None: + async with async_client.deployments.with_streaming_response.delete( + "id", + ) as response: + assert not response.is_closed + assert response.http_request.headers.get("X-Stainless-Lang") == "python" + + deployment = await response.parse() + assert deployment is None + + assert cast(Any, response.is_closed) is True + + @pytest.mark.skip(reason="Mock server tests are disabled") + @parametrize + async def test_path_params_delete(self, async_client: AsyncKernel) -> None: + with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): + await async_client.deployments.with_raw_response.delete( + "", + ) + + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_follow(self, async_client: AsyncKernel) -> None: deployment_stream = await async_client.deployments.follow( @@ -350,7 +434,7 @@ async def test_method_follow(self, async_client: AsyncKernel) -> None: ) await deployment_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_follow_with_all_params(self, async_client: AsyncKernel) -> None: deployment_stream = await async_client.deployments.follow( @@ -359,7 +443,7 @@ async def test_method_follow_with_all_params(self, async_client: AsyncKernel) -> ) await deployment_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.follow( @@ -370,7 +454,7 @@ async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_follow(self, async_client: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.follow( @@ -384,7 +468,7 @@ async def test_streaming_response_follow(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_follow(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_extensions.py b/tests/api_resources/test_extensions.py index 5d61f327..6f31f548 100644 --- a/tests/api_resources/test_extensions.py +++ b/tests/api_resources/test_extensions.py @@ -28,13 +28,13 @@ class TestExtensions: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: extension = client.extensions.list() assert_matches_type(ExtensionListResponse, extension, 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: Kernel) -> None: response = client.extensions.with_raw_response.list() @@ -44,7 +44,7 @@ def test_raw_response_list(self, client: Kernel) -> None: extension = response.parse() assert_matches_type(ExtensionListResponse, extension, 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: Kernel) -> None: with client.extensions.with_streaming_response.list() as response: @@ -56,7 +56,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: extension = client.extensions.delete( @@ -64,7 +64,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert extension 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: Kernel) -> None: response = client.extensions.with_raw_response.delete( @@ -76,7 +76,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: extension = response.parse() assert extension 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: Kernel) -> None: with client.extensions.with_streaming_response.delete( @@ -90,7 +90,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -203,7 +203,7 @@ def test_streaming_response_download_from_chrome_store(self, client: Kernel, res assert cast(Any, extension.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_upload(self, client: Kernel) -> None: extension = client.extensions.upload( @@ -211,7 +211,7 @@ def test_method_upload(self, client: Kernel) -> None: ) assert_matches_type(ExtensionUploadResponse, extension, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_upload_with_all_params(self, client: Kernel) -> None: extension = client.extensions.upload( @@ -220,7 +220,7 @@ def test_method_upload_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ExtensionUploadResponse, extension, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_upload(self, client: Kernel) -> None: response = client.extensions.with_raw_response.upload( @@ -232,7 +232,7 @@ def test_raw_response_upload(self, client: Kernel) -> None: extension = response.parse() assert_matches_type(ExtensionUploadResponse, extension, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_upload(self, client: Kernel) -> None: with client.extensions.with_streaming_response.upload( @@ -252,13 +252,13 @@ class TestAsyncExtensions: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: extension = await async_client.extensions.list() assert_matches_type(ExtensionListResponse, extension, 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: AsyncKernel) -> None: response = await async_client.extensions.with_raw_response.list() @@ -268,7 +268,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: extension = await response.parse() assert_matches_type(ExtensionListResponse, extension, 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: AsyncKernel) -> None: async with async_client.extensions.with_streaming_response.list() as response: @@ -280,7 +280,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: extension = await async_client.extensions.delete( @@ -288,7 +288,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert extension 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: AsyncKernel) -> None: response = await async_client.extensions.with_raw_response.delete( @@ -300,7 +300,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: extension = await response.parse() assert extension 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: AsyncKernel) -> None: async with async_client.extensions.with_streaming_response.delete( @@ -314,7 +314,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -433,7 +433,7 @@ async def test_streaming_response_download_from_chrome_store( assert cast(Any, extension.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_upload(self, async_client: AsyncKernel) -> None: extension = await async_client.extensions.upload( @@ -441,7 +441,7 @@ async def test_method_upload(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ExtensionUploadResponse, extension, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_upload_with_all_params(self, async_client: AsyncKernel) -> None: extension = await async_client.extensions.upload( @@ -450,7 +450,7 @@ async def test_method_upload_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(ExtensionUploadResponse, extension, 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_upload(self, async_client: AsyncKernel) -> None: response = await async_client.extensions.with_raw_response.upload( @@ -462,7 +462,7 @@ async def test_raw_response_upload(self, async_client: AsyncKernel) -> None: extension = await response.parse() assert_matches_type(ExtensionUploadResponse, extension, 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_upload(self, async_client: AsyncKernel) -> None: async with async_client.extensions.with_streaming_response.upload( diff --git a/tests/api_resources/test_invocations.py b/tests/api_resources/test_invocations.py index d870adce..d2784c21 100644 --- a/tests/api_resources/test_invocations.py +++ b/tests/api_resources/test_invocations.py @@ -24,7 +24,7 @@ class TestInvocations: 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: Kernel) -> None: invocation = client.invocations.create( @@ -34,7 +34,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(InvocationCreateResponse, invocation, 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: Kernel) -> None: invocation = client.invocations.create( @@ -47,7 +47,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(InvocationCreateResponse, invocation, 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: Kernel) -> None: response = client.invocations.with_raw_response.create( @@ -61,7 +61,7 @@ def test_raw_response_create(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationCreateResponse, invocation, 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: Kernel) -> None: with client.invocations.with_streaming_response.create( @@ -77,7 +77,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: invocation = client.invocations.retrieve( @@ -85,7 +85,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(InvocationRetrieveResponse, invocation, 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: Kernel) -> None: response = client.invocations.with_raw_response.retrieve( @@ -97,7 +97,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationRetrieveResponse, invocation, 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: Kernel) -> None: with client.invocations.with_streaming_response.retrieve( @@ -111,7 +111,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -119,7 +119,7 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: invocation = client.invocations.update( @@ -128,7 +128,7 @@ def test_method_update(self, client: Kernel) -> None: ) assert_matches_type(InvocationUpdateResponse, invocation, 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: Kernel) -> None: invocation = client.invocations.update( @@ -138,7 +138,7 @@ def test_method_update_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(InvocationUpdateResponse, invocation, 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: Kernel) -> None: response = client.invocations.with_raw_response.update( @@ -151,7 +151,7 @@ def test_raw_response_update(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationUpdateResponse, invocation, 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: Kernel) -> None: with client.invocations.with_streaming_response.update( @@ -166,7 +166,7 @@ def test_streaming_response_update(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -175,13 +175,13 @@ def test_path_params_update(self, client: Kernel) -> None: status="succeeded", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: invocation = client.invocations.list() assert_matches_type(SyncOffsetPagination[InvocationListResponse], invocation, 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: Kernel) -> None: invocation = client.invocations.list( @@ -196,7 +196,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(SyncOffsetPagination[InvocationListResponse], invocation, 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: Kernel) -> None: response = client.invocations.with_raw_response.list() @@ -206,7 +206,7 @@ def test_raw_response_list(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(SyncOffsetPagination[InvocationListResponse], invocation, 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: Kernel) -> None: with client.invocations.with_streaming_response.list() as response: @@ -218,7 +218,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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_browsers(self, client: Kernel) -> None: invocation = client.invocations.delete_browsers( @@ -226,7 +226,7 @@ def test_method_delete_browsers(self, client: Kernel) -> None: ) assert invocation 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_browsers(self, client: Kernel) -> None: response = client.invocations.with_raw_response.delete_browsers( @@ -238,7 +238,7 @@ def test_raw_response_delete_browsers(self, client: Kernel) -> None: invocation = response.parse() assert invocation 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_browsers(self, client: Kernel) -> None: with client.invocations.with_streaming_response.delete_browsers( @@ -252,7 +252,7 @@ def test_streaming_response_delete_browsers(self, client: Kernel) -> 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_browsers(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -260,7 +260,7 @@ def test_path_params_delete_browsers(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_follow(self, client: Kernel) -> None: invocation_stream = client.invocations.follow( @@ -268,7 +268,7 @@ def test_method_follow(self, client: Kernel) -> None: ) invocation_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_follow_with_all_params(self, client: Kernel) -> None: invocation_stream = client.invocations.follow( @@ -277,7 +277,7 @@ def test_method_follow_with_all_params(self, client: Kernel) -> None: ) invocation_stream.response.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_follow(self, client: Kernel) -> None: response = client.invocations.with_raw_response.follow( @@ -288,7 +288,7 @@ def test_raw_response_follow(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_follow(self, client: Kernel) -> None: with client.invocations.with_streaming_response.follow( @@ -302,7 +302,7 @@ def test_streaming_response_follow(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_follow(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -310,7 +310,7 @@ def test_path_params_follow(self, client: Kernel) -> None: id="", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_browsers(self, client: Kernel) -> None: invocation = client.invocations.list_browsers( @@ -318,7 +318,7 @@ def test_method_list_browsers(self, client: Kernel) -> None: ) assert_matches_type(InvocationListBrowsersResponse, invocation, 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_browsers(self, client: Kernel) -> None: response = client.invocations.with_raw_response.list_browsers( @@ -330,7 +330,7 @@ def test_raw_response_list_browsers(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationListBrowsersResponse, invocation, 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_browsers(self, client: Kernel) -> None: with client.invocations.with_streaming_response.list_browsers( @@ -344,7 +344,7 @@ def test_streaming_response_list_browsers(self, client: Kernel) -> 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_browsers(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -358,7 +358,7 @@ class TestAsyncInvocations: "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: AsyncKernel) -> None: invocation = await async_client.invocations.create( @@ -368,7 +368,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationCreateResponse, invocation, 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: AsyncKernel) -> None: invocation = await async_client.invocations.create( @@ -381,7 +381,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(InvocationCreateResponse, invocation, 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: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.create( @@ -395,7 +395,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: invocation = await response.parse() assert_matches_type(InvocationCreateResponse, invocation, 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: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.create( @@ -411,7 +411,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: invocation = await async_client.invocations.retrieve( @@ -419,7 +419,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationRetrieveResponse, invocation, 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: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.retrieve( @@ -431,7 +431,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: invocation = await response.parse() assert_matches_type(InvocationRetrieveResponse, invocation, 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: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.retrieve( @@ -445,7 +445,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -453,7 +453,7 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: invocation = await async_client.invocations.update( @@ -462,7 +462,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationUpdateResponse, invocation, 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: AsyncKernel) -> None: invocation = await async_client.invocations.update( @@ -472,7 +472,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(InvocationUpdateResponse, invocation, 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: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.update( @@ -485,7 +485,7 @@ async def test_raw_response_update(self, async_client: AsyncKernel) -> None: invocation = await response.parse() assert_matches_type(InvocationUpdateResponse, invocation, 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: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.update( @@ -500,7 +500,7 @@ async def test_streaming_response_update(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -509,13 +509,13 @@ async def test_path_params_update(self, async_client: AsyncKernel) -> None: status="succeeded", ) - @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: AsyncKernel) -> None: invocation = await async_client.invocations.list() assert_matches_type(AsyncOffsetPagination[InvocationListResponse], invocation, 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: AsyncKernel) -> None: invocation = await async_client.invocations.list( @@ -530,7 +530,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AsyncOffsetPagination[InvocationListResponse], invocation, 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: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.list() @@ -540,7 +540,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: invocation = await response.parse() assert_matches_type(AsyncOffsetPagination[InvocationListResponse], invocation, 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: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.list() as response: @@ -552,7 +552,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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_browsers(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.delete_browsers( @@ -560,7 +560,7 @@ async def test_method_delete_browsers(self, async_client: AsyncKernel) -> None: ) assert invocation 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_browsers(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.delete_browsers( @@ -572,7 +572,7 @@ async def test_raw_response_delete_browsers(self, async_client: AsyncKernel) -> invocation = await response.parse() assert invocation 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_browsers(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.delete_browsers( @@ -586,7 +586,7 @@ async def test_streaming_response_delete_browsers(self, async_client: AsyncKerne 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_browsers(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -594,7 +594,7 @@ async def test_path_params_delete_browsers(self, async_client: AsyncKernel) -> N "", ) - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_follow(self, async_client: AsyncKernel) -> None: invocation_stream = await async_client.invocations.follow( @@ -602,7 +602,7 @@ async def test_method_follow(self, async_client: AsyncKernel) -> None: ) await invocation_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_follow_with_all_params(self, async_client: AsyncKernel) -> None: invocation_stream = await async_client.invocations.follow( @@ -611,7 +611,7 @@ async def test_method_follow_with_all_params(self, async_client: AsyncKernel) -> ) await invocation_stream.response.aclose() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.follow( @@ -622,7 +622,7 @@ async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_follow(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.follow( @@ -636,7 +636,7 @@ async def test_streaming_response_follow(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_follow(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -644,7 +644,7 @@ async def test_path_params_follow(self, async_client: AsyncKernel) -> 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_browsers(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.list_browsers( @@ -652,7 +652,7 @@ async def test_method_list_browsers(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationListBrowsersResponse, invocation, 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_browsers(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.list_browsers( @@ -664,7 +664,7 @@ async def test_raw_response_list_browsers(self, async_client: AsyncKernel) -> No invocation = await response.parse() assert_matches_type(InvocationListBrowsersResponse, invocation, 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_browsers(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.list_browsers( @@ -678,7 +678,7 @@ async def test_streaming_response_list_browsers(self, async_client: AsyncKernel) 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_browsers(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_profiles.py b/tests/api_resources/test_profiles.py index 6c978558..2024ec8a 100644 --- a/tests/api_resources/test_profiles.py +++ b/tests/api_resources/test_profiles.py @@ -25,13 +25,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: Kernel) -> None: profile = client.profiles.create() assert_matches_type(Profile, 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: Kernel) -> None: profile = client.profiles.create( @@ -39,7 +39,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(Profile, 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: Kernel) -> None: response = client.profiles.with_raw_response.create() @@ -49,7 +49,7 @@ def test_raw_response_create(self, client: Kernel) -> None: profile = response.parse() assert_matches_type(Profile, 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: Kernel) -> None: with client.profiles.with_streaming_response.create() as response: @@ -61,7 +61,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: profile = client.profiles.retrieve( @@ -69,7 +69,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(Profile, 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: Kernel) -> None: response = client.profiles.with_raw_response.retrieve( @@ -81,7 +81,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: profile = response.parse() assert_matches_type(Profile, 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: Kernel) -> None: with client.profiles.with_streaming_response.retrieve( @@ -95,7 +95,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -103,13 +103,13 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> 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: Kernel) -> None: response = client.profiles.with_raw_response.list() @@ -119,7 +119,7 @@ def test_raw_response_list(self, client: Kernel) -> 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: Kernel) -> None: with client.profiles.with_streaming_response.list() as response: @@ -131,7 +131,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: profile = client.profiles.delete( @@ -139,7 +139,7 @@ def test_method_delete(self, client: Kernel) -> 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: Kernel) -> None: response = client.profiles.with_raw_response.delete( @@ -151,7 +151,7 @@ def test_raw_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with client.profiles.with_streaming_response.delete( @@ -165,7 +165,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -229,13 +229,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: AsyncKernel) -> None: profile = await async_client.profiles.create() assert_matches_type(Profile, 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: AsyncKernel) -> None: profile = await async_client.profiles.create( @@ -243,7 +243,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(Profile, 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: AsyncKernel) -> None: response = await async_client.profiles.with_raw_response.create() @@ -253,7 +253,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: profile = await response.parse() assert_matches_type(Profile, 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: AsyncKernel) -> None: async with async_client.profiles.with_streaming_response.create() as response: @@ -265,7 +265,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: profile = await async_client.profiles.retrieve( @@ -273,7 +273,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(Profile, 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: AsyncKernel) -> None: response = await async_client.profiles.with_raw_response.retrieve( @@ -285,7 +285,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: profile = await response.parse() assert_matches_type(Profile, 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: AsyncKernel) -> None: async with async_client.profiles.with_streaming_response.retrieve( @@ -299,7 +299,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): @@ -307,13 +307,13 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> 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: AsyncKernel) -> None: response = await async_client.profiles.with_raw_response.list() @@ -323,7 +323,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: async with async_client.profiles.with_streaming_response.list() as response: @@ -335,7 +335,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: profile = await async_client.profiles.delete( @@ -343,7 +343,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> 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_raw_response_delete(self, async_client: AsyncKernel) -> None: response = await async_client.profiles.with_raw_response.delete( @@ -355,7 +355,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: async with async_client.profiles.with_streaming_response.delete( @@ -369,7 +369,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id_or_name` but received ''"): diff --git a/tests/api_resources/test_proxies.py b/tests/api_resources/test_proxies.py index ed858e8d..3caabece 100644 --- a/tests/api_resources/test_proxies.py +++ b/tests/api_resources/test_proxies.py @@ -22,7 +22,7 @@ class TestProxies: 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: Kernel) -> None: proxy = client.proxies.create( @@ -30,7 +30,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(ProxyCreateResponse, proxy, 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: Kernel) -> None: proxy = client.proxies.create( @@ -41,7 +41,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ProxyCreateResponse, proxy, 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: Kernel) -> None: response = client.proxies.with_raw_response.create( @@ -53,7 +53,7 @@ def test_raw_response_create(self, client: Kernel) -> None: proxy = response.parse() assert_matches_type(ProxyCreateResponse, proxy, 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: Kernel) -> None: with client.proxies.with_streaming_response.create( @@ -67,7 +67,7 @@ def test_streaming_response_create(self, client: Kernel) -> 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: Kernel) -> None: proxy = client.proxies.retrieve( @@ -75,7 +75,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(ProxyRetrieveResponse, proxy, 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: Kernel) -> None: response = client.proxies.with_raw_response.retrieve( @@ -87,7 +87,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: proxy = response.parse() assert_matches_type(ProxyRetrieveResponse, proxy, 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: Kernel) -> None: with client.proxies.with_streaming_response.retrieve( @@ -101,7 +101,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -109,13 +109,13 @@ def test_path_params_retrieve(self, client: Kernel) -> 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: Kernel) -> None: proxy = client.proxies.list() assert_matches_type(ProxyListResponse, proxy, 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: Kernel) -> None: response = client.proxies.with_raw_response.list() @@ -125,7 +125,7 @@ def test_raw_response_list(self, client: Kernel) -> None: proxy = response.parse() assert_matches_type(ProxyListResponse, proxy, 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: Kernel) -> None: with client.proxies.with_streaming_response.list() as response: @@ -137,7 +137,7 @@ def test_streaming_response_list(self, client: Kernel) -> 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: Kernel) -> None: proxy = client.proxies.delete( @@ -145,7 +145,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert proxy 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: Kernel) -> None: response = client.proxies.with_raw_response.delete( @@ -157,7 +157,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: proxy = response.parse() assert proxy 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: Kernel) -> None: with client.proxies.with_streaming_response.delete( @@ -171,7 +171,7 @@ def test_streaming_response_delete(self, client: Kernel) -> 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: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -179,7 +179,7 @@ def test_path_params_delete(self, client: Kernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_check(self, client: Kernel) -> None: proxy = client.proxies.check( @@ -187,7 +187,7 @@ def test_method_check(self, client: Kernel) -> None: ) assert_matches_type(ProxyCheckResponse, proxy, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_check(self, client: Kernel) -> None: response = client.proxies.with_raw_response.check( @@ -199,7 +199,7 @@ def test_raw_response_check(self, client: Kernel) -> None: proxy = response.parse() assert_matches_type(ProxyCheckResponse, proxy, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_check(self, client: Kernel) -> None: with client.proxies.with_streaming_response.check( @@ -213,7 +213,7 @@ def test_streaming_response_check(self, client: Kernel) -> 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_check(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -227,7 +227,7 @@ class TestAsyncProxies: "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: AsyncKernel) -> None: proxy = await async_client.proxies.create( @@ -235,7 +235,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProxyCreateResponse, proxy, 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: AsyncKernel) -> None: proxy = await async_client.proxies.create( @@ -246,7 +246,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(ProxyCreateResponse, proxy, 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: AsyncKernel) -> None: response = await async_client.proxies.with_raw_response.create( @@ -258,7 +258,7 @@ async def test_raw_response_create(self, async_client: AsyncKernel) -> None: proxy = await response.parse() assert_matches_type(ProxyCreateResponse, proxy, 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: AsyncKernel) -> None: async with async_client.proxies.with_streaming_response.create( @@ -272,7 +272,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: proxy = await async_client.proxies.retrieve( @@ -280,7 +280,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProxyRetrieveResponse, proxy, 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: AsyncKernel) -> None: response = await async_client.proxies.with_raw_response.retrieve( @@ -292,7 +292,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: proxy = await response.parse() assert_matches_type(ProxyRetrieveResponse, proxy, 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: AsyncKernel) -> None: async with async_client.proxies.with_streaming_response.retrieve( @@ -306,7 +306,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -314,13 +314,13 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: proxy = await async_client.proxies.list() assert_matches_type(ProxyListResponse, proxy, 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: AsyncKernel) -> None: response = await async_client.proxies.with_raw_response.list() @@ -330,7 +330,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: proxy = await response.parse() assert_matches_type(ProxyListResponse, proxy, 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: AsyncKernel) -> None: async with async_client.proxies.with_streaming_response.list() as response: @@ -342,7 +342,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: proxy = await async_client.proxies.delete( @@ -350,7 +350,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert proxy 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: AsyncKernel) -> None: response = await async_client.proxies.with_raw_response.delete( @@ -362,7 +362,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: proxy = await response.parse() assert proxy 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: AsyncKernel) -> None: async with async_client.proxies.with_streaming_response.delete( @@ -376,7 +376,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> 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: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -384,7 +384,7 @@ async def test_path_params_delete(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_check(self, async_client: AsyncKernel) -> None: proxy = await async_client.proxies.check( @@ -392,7 +392,7 @@ async def test_method_check(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ProxyCheckResponse, proxy, 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_check(self, async_client: AsyncKernel) -> None: response = await async_client.proxies.with_raw_response.check( @@ -404,7 +404,7 @@ async def test_raw_response_check(self, async_client: AsyncKernel) -> None: proxy = await response.parse() assert_matches_type(ProxyCheckResponse, proxy, 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_check(self, async_client: AsyncKernel) -> None: async with async_client.proxies.with_streaming_response.check( @@ -418,7 +418,7 @@ async def test_streaming_response_check(self, async_client: AsyncKernel) -> 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_check(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):