diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6d78745..0598874 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.9.0" + ".": "0.9.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 062204b..86b4afd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 31 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-e907afeabfeea49dedd783112ac3fd29267bc86f3d594f89ba9a2abf2bcbc9d8.yml -openapi_spec_hash: 060ca6288c1a09b6d1bdf207a0011165 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-6f4aab5f0db80d6ce30ef40274eee347cce0a9465e7f1e5077f8f4a085251ddf.yml +openapi_spec_hash: 8e83254243d1620b80a0dc8aa212ee0d config_hash: f67e4b33b2fb30c1405ee2fff8096320 diff --git a/CHANGELOG.md b/CHANGELOG.md index fddb4f5..94cf75c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## 0.9.1 (2025-08-12) + +Full Changelog: [v0.9.0...v0.9.1](https://github.com/onkernel/kernel-python-sdk/compare/v0.9.0...v0.9.1) + +### Features + +* **api:** add browser ttls ([ad95f5f](https://github.com/onkernel/kernel-python-sdk/commit/ad95f5f609fead980b2d96b86f871682cad75ae2)) + + +### Chores + +* **internal:** codegen related update ([024c808](https://github.com/onkernel/kernel-python-sdk/commit/024c80865450277ca40433a7caaff078b5a25486)) +* **internal:** update comment in script ([4279b99](https://github.com/onkernel/kernel-python-sdk/commit/4279b9927f99897dde36c07f5dc39ed2680ad261)) +* update @stainless-api/prism-cli to v5.15.0 ([e78750e](https://github.com/onkernel/kernel-python-sdk/commit/e78750efdc419051c8db37ac89df111e81fa0401)) + ## 0.9.0 (2025-08-08) Full Changelog: [v0.8.3...v0.9.0](https://github.com/onkernel/kernel-python-sdk/compare/v0.8.3...v0.9.0) diff --git a/pyproject.toml b/pyproject.toml index 49f04c9..ddb4fbb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "kernel" -version = "0.9.0" +version = "0.9.1" description = "The official Python library for the kernel API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/mock b/scripts/mock index d2814ae..0b28f6e 100755 --- a/scripts/mock +++ b/scripts/mock @@ -21,7 +21,7 @@ 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.8.5 -- prism mock "$URL" &> .prism.log & + 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" @@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then echo else - npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" + npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" fi diff --git a/scripts/test b/scripts/test index 2b87845..dbeda2d 100755 --- a/scripts/test +++ b/scripts/test @@ -43,7 +43,7 @@ elif ! prism_is_running ; then echo -e "To run the server, pass in the path or url of your OpenAPI" echo -e "spec to the prism command:" echo - echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}" + echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" echo exit 1 diff --git a/src/kernel/_version.py b/src/kernel/_version.py index a21b043..de748b7 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.9.0" # x-release-please-version +__version__ = "0.9.1" # x-release-please-version diff --git a/src/kernel/resources/browsers/browsers.py b/src/kernel/resources/browsers/browsers.py index 6d29c9e..559e094 100644 --- a/src/kernel/resources/browsers/browsers.py +++ b/src/kernel/resources/browsers/browsers.py @@ -75,6 +75,7 @@ def create( invocation_id: str | NotGiven = NOT_GIVEN, persistence: BrowserPersistenceParam | NotGiven = NOT_GIVEN, stealth: bool | NotGiven = NOT_GIVEN, + timeout_seconds: int | NotGiven = NOT_GIVEN, # 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, @@ -96,6 +97,10 @@ def create( stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot mechanisms. + timeout_seconds: The number of seconds of inactivity before the browser session is terminated. + Only applicable to non-persistent browsers. Activity includes CDP connections + and live view connections. Defaults to 60 seconds. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -112,6 +117,7 @@ def create( "invocation_id": invocation_id, "persistence": persistence, "stealth": stealth, + "timeout_seconds": timeout_seconds, }, browser_create_params.BrowserCreateParams, ), @@ -281,6 +287,7 @@ async def create( invocation_id: str | NotGiven = NOT_GIVEN, persistence: BrowserPersistenceParam | NotGiven = NOT_GIVEN, stealth: bool | NotGiven = NOT_GIVEN, + timeout_seconds: int | NotGiven = NOT_GIVEN, # 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, @@ -302,6 +309,10 @@ async def create( stealth: If true, launches the browser in stealth mode to reduce detection by anti-bot mechanisms. + timeout_seconds: The number of seconds of inactivity before the browser session is terminated. + Only applicable to non-persistent browsers. Activity includes CDP connections + and live view connections. Defaults to 60 seconds. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -318,6 +329,7 @@ async def create( "invocation_id": invocation_id, "persistence": persistence, "stealth": stealth, + "timeout_seconds": timeout_seconds, }, browser_create_params.BrowserCreateParams, ), diff --git a/src/kernel/types/browser_create_params.py b/src/kernel/types/browser_create_params.py index 746a92f..140dac0 100644 --- a/src/kernel/types/browser_create_params.py +++ b/src/kernel/types/browser_create_params.py @@ -27,3 +27,10 @@ class BrowserCreateParams(TypedDict, total=False): If true, launches the browser in stealth mode to reduce detection by anti-bot mechanisms. """ + + timeout_seconds: int + """The number of seconds of inactivity before the browser session is terminated. + + Only applicable to non-persistent browsers. Activity includes CDP connections + and live view connections. Defaults to 60 seconds. + """ diff --git a/src/kernel/types/browser_create_response.py b/src/kernel/types/browser_create_response.py index afba2b3..7b7b2ab 100644 --- a/src/kernel/types/browser_create_response.py +++ b/src/kernel/types/browser_create_response.py @@ -12,9 +12,18 @@ class BrowserCreateResponse(BaseModel): cdp_ws_url: str """Websocket URL for Chrome DevTools Protocol connections to the browser session""" + headless: bool + """Indicates whether the browser session is headless.""" + session_id: str """Unique identifier for the browser session""" + stealth: bool + """Indicates whether the browser session is stealth.""" + + timeout_seconds: int + """The number of seconds of inactivity before the browser session is terminated.""" + browser_live_view_url: Optional[str] = None """Remote URL for live viewing the browser session. diff --git a/src/kernel/types/browser_list_response.py b/src/kernel/types/browser_list_response.py index 43c8d92..22fe230 100644 --- a/src/kernel/types/browser_list_response.py +++ b/src/kernel/types/browser_list_response.py @@ -13,9 +13,18 @@ class BrowserListResponseItem(BaseModel): cdp_ws_url: str """Websocket URL for Chrome DevTools Protocol connections to the browser session""" + headless: bool + """Indicates whether the browser session is headless.""" + session_id: str """Unique identifier for the browser session""" + stealth: bool + """Indicates whether the browser session is stealth.""" + + timeout_seconds: int + """The number of seconds of inactivity before the browser session is terminated.""" + browser_live_view_url: Optional[str] = None """Remote URL for live viewing the browser session. diff --git a/src/kernel/types/browser_retrieve_response.py b/src/kernel/types/browser_retrieve_response.py index 45cf74b..74084b5 100644 --- a/src/kernel/types/browser_retrieve_response.py +++ b/src/kernel/types/browser_retrieve_response.py @@ -12,9 +12,18 @@ class BrowserRetrieveResponse(BaseModel): cdp_ws_url: str """Websocket URL for Chrome DevTools Protocol connections to the browser session""" + headless: bool + """Indicates whether the browser session is headless.""" + session_id: str """Unique identifier for the browser session""" + stealth: bool + """Indicates whether the browser session is stealth.""" + + timeout_seconds: int + """The number of seconds of inactivity before the browser session is terminated.""" + browser_live_view_url: Optional[str] = None """Remote URL for live viewing the browser session. diff --git a/tests/api_resources/browsers/fs/test_watch.py b/tests/api_resources/browsers/fs/test_watch.py index b815c8a..683e154 100644 --- a/tests/api_resources/browsers/fs/test_watch.py +++ b/tests/api_resources/browsers/fs/test_watch.py @@ -17,9 +17,7 @@ class TestWatch: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_method_events(self, client: Kernel) -> None: watch_stream = client.browsers.fs.watch.events( @@ -28,9 +26,7 @@ def test_method_events(self, client: Kernel) -> None: ) watch_stream.response.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_raw_response_events(self, client: Kernel) -> None: response = client.browsers.fs.watch.with_raw_response.events( @@ -42,9 +38,7 @@ def test_raw_response_events(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_streaming_response_events(self, client: Kernel) -> None: with client.browsers.fs.watch.with_streaming_response.events( @@ -59,9 +53,7 @@ def test_streaming_response_events(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @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 ''"): @@ -76,7 +68,7 @@ def test_path_params_events(self, client: Kernel) -> None: id="id", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_start(self, client: Kernel) -> None: watch = client.browsers.fs.watch.start( @@ -85,7 +77,7 @@ def test_method_start(self, client: Kernel) -> None: ) assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_start_with_all_params(self, client: Kernel) -> None: watch = client.browsers.fs.watch.start( @@ -95,7 +87,7 @@ def test_method_start_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_start(self, client: Kernel) -> None: response = client.browsers.fs.watch.with_raw_response.start( @@ -108,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_start(self, client: Kernel) -> None: with client.browsers.fs.watch.with_streaming_response.start( @@ -123,7 +115,7 @@ def test_streaming_response_start(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_start(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -132,7 +124,7 @@ def test_path_params_start(self, client: Kernel) -> None: path="path", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_stop(self, client: Kernel) -> None: watch = client.browsers.fs.watch.stop( @@ -141,7 +133,7 @@ def test_method_stop(self, client: Kernel) -> None: ) assert watch is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_stop(self, client: Kernel) -> None: response = client.browsers.fs.watch.with_raw_response.stop( @@ -154,7 +146,7 @@ def test_raw_response_stop(self, client: Kernel) -> None: watch = response.parse() assert watch is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_stop(self, client: Kernel) -> None: with client.browsers.fs.watch.with_streaming_response.stop( @@ -169,7 +161,7 @@ def test_streaming_response_stop(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_stop(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -190,9 +182,7 @@ class TestAsyncWatch: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_method_events(self, async_client: AsyncKernel) -> None: watch_stream = await async_client.browsers.fs.watch.events( @@ -201,9 +191,7 @@ async def test_method_events(self, async_client: AsyncKernel) -> None: ) await watch_stream.response.aclose() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_raw_response_events(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.fs.watch.with_raw_response.events( @@ -215,9 +203,7 @@ async def test_raw_response_events(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_streaming_response_events(self, async_client: AsyncKernel) -> None: async with async_client.browsers.fs.watch.with_streaming_response.events( @@ -232,9 +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="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @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 ''"): @@ -249,7 +233,7 @@ async def test_path_params_events(self, async_client: AsyncKernel) -> None: id="id", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_start(self, async_client: AsyncKernel) -> None: watch = await async_client.browsers.fs.watch.start( @@ -258,7 +242,7 @@ async def test_method_start(self, async_client: AsyncKernel) -> None: ) assert_matches_type(WatchStartResponse, watch, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -268,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() + @pytest.mark.skip(reason="Prism 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( @@ -281,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() + @pytest.mark.skip(reason="Prism 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( @@ -296,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() + @pytest.mark.skip(reason="Prism 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 ''"): @@ -305,7 +289,7 @@ async def test_path_params_start(self, async_client: AsyncKernel) -> None: path="path", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_stop(self, async_client: AsyncKernel) -> None: watch = await async_client.browsers.fs.watch.stop( @@ -314,7 +298,7 @@ async def test_method_stop(self, async_client: AsyncKernel) -> None: ) assert watch is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -327,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() + @pytest.mark.skip(reason="Prism 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( @@ -342,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() + @pytest.mark.skip(reason="Prism 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_fs.py b/tests/api_resources/browsers/test_fs.py index c82e09d..24860c9 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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 ''"): @@ -176,7 +176,7 @@ def test_path_params_delete_file(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_file_info(self, client: Kernel) -> None: f = client.browsers.fs.file_info( @@ -185,7 +185,7 @@ def test_method_file_info(self, client: Kernel) -> None: ) assert_matches_type(FFileInfoResponse, f, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_file_info(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.file_info( @@ -198,7 +198,7 @@ def test_raw_response_file_info(self, client: Kernel) -> None: f = response.parse() assert_matches_type(FFileInfoResponse, f, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_file_info(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.file_info( @@ -213,7 +213,7 @@ def test_streaming_response_file_info(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_file_info(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -222,7 +222,7 @@ def test_path_params_file_info(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list_files(self, client: Kernel) -> None: f = client.browsers.fs.list_files( @@ -231,7 +231,7 @@ def test_method_list_files(self, client: Kernel) -> None: ) assert_matches_type(FListFilesResponse, f, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list_files(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.list_files( @@ -244,7 +244,7 @@ def test_raw_response_list_files(self, client: Kernel) -> None: f = response.parse() assert_matches_type(FListFilesResponse, f, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list_files(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.list_files( @@ -259,7 +259,7 @@ def test_streaming_response_list_files(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_list_files(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_list_files(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_move(self, client: Kernel) -> None: f = client.browsers.fs.move( @@ -278,7 +278,7 @@ def test_method_move(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_move(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.move( @@ -292,7 +292,7 @@ def test_raw_response_move(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_move(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.move( @@ -308,7 +308,7 @@ def test_streaming_response_move(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_move(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -318,7 +318,6 @@ def test_path_params_move(self, client: Kernel) -> None: src_path="/J!", ) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_method_read_file(self, client: Kernel, respx_mock: MockRouter) -> None: @@ -332,7 +331,6 @@ def test_method_read_file(self, client: Kernel, respx_mock: MockRouter) -> None: assert cast(Any, f.is_closed) is True assert isinstance(f, BinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_raw_response_read_file(self, client: Kernel, respx_mock: MockRouter) -> None: @@ -348,7 +346,6 @@ def test_raw_response_read_file(self, client: Kernel, respx_mock: MockRouter) -> assert f.json() == {"foo": "bar"} assert isinstance(f, BinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_streaming_response_read_file(self, client: Kernel, respx_mock: MockRouter) -> None: @@ -366,7 +363,6 @@ def test_streaming_response_read_file(self, client: Kernel, respx_mock: MockRout assert cast(Any, f.is_closed) is True - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_path_params_read_file(self, client: Kernel) -> None: @@ -376,7 +372,7 @@ def test_path_params_read_file(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_set_file_permissions(self, client: Kernel) -> None: f = client.browsers.fs.set_file_permissions( @@ -386,7 +382,7 @@ def test_method_set_file_permissions(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_set_file_permissions_with_all_params(self, client: Kernel) -> None: f = client.browsers.fs.set_file_permissions( @@ -398,7 +394,7 @@ def test_method_set_file_permissions_with_all_params(self, client: Kernel) -> No ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -412,7 +408,7 @@ def test_raw_response_set_file_permissions(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -428,7 +424,7 @@ def test_streaming_response_set_file_permissions(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_set_file_permissions(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -438,7 +434,7 @@ def test_path_params_set_file_permissions(self, client: Kernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_write_file(self, client: Kernel) -> None: f = client.browsers.fs.write_file( @@ -448,7 +444,7 @@ def test_method_write_file(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_write_file_with_all_params(self, client: Kernel) -> None: f = client.browsers.fs.write_file( @@ -459,7 +455,7 @@ def test_method_write_file_with_all_params(self, client: Kernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_write_file(self, client: Kernel) -> None: response = client.browsers.fs.with_raw_response.write_file( @@ -473,7 +469,7 @@ def test_raw_response_write_file(self, client: Kernel) -> None: f = response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_write_file(self, client: Kernel) -> None: with client.browsers.fs.with_streaming_response.write_file( @@ -489,7 +485,7 @@ def test_streaming_response_write_file(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_write_file(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -505,7 +501,7 @@ class TestAsyncFs: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_directory(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.create_directory( @@ -514,7 +510,7 @@ async def test_method_create_directory(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -524,7 +520,7 @@ async def test_method_create_directory_with_all_params(self, async_client: Async ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -537,7 +533,7 @@ async def test_raw_response_create_directory(self, async_client: AsyncKernel) -> f = await response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -552,7 +548,7 @@ async def test_streaming_response_create_directory(self, async_client: AsyncKern assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_create_directory(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -561,7 +557,7 @@ async def test_path_params_create_directory(self, async_client: AsyncKernel) -> path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete_directory(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.delete_directory( @@ -570,7 +566,7 @@ async def test_method_delete_directory(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -583,7 +579,7 @@ async def test_raw_response_delete_directory(self, async_client: AsyncKernel) -> f = await response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -598,7 +594,7 @@ async def test_streaming_response_delete_directory(self, async_client: AsyncKern assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete_directory(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -607,7 +603,7 @@ async def test_path_params_delete_directory(self, async_client: AsyncKernel) -> path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete_file(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.delete_file( @@ -616,7 +612,7 @@ async def test_method_delete_file(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -629,7 +625,7 @@ async def test_raw_response_delete_file(self, async_client: AsyncKernel) -> None f = await response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -644,7 +640,7 @@ async def test_streaming_response_delete_file(self, async_client: AsyncKernel) - assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete_file(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -653,7 +649,7 @@ async def test_path_params_delete_file(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_file_info(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.file_info( @@ -662,7 +658,7 @@ async def test_method_file_info(self, async_client: AsyncKernel) -> None: ) assert_matches_type(FFileInfoResponse, f, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -675,7 +671,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() + @pytest.mark.skip(reason="Prism 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( @@ -690,7 +686,7 @@ async def test_streaming_response_file_info(self, async_client: AsyncKernel) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_file_info(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -699,7 +695,7 @@ async def test_path_params_file_info(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list_files(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.list_files( @@ -708,7 +704,7 @@ async def test_method_list_files(self, async_client: AsyncKernel) -> None: ) assert_matches_type(FListFilesResponse, f, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -721,7 +717,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() + @pytest.mark.skip(reason="Prism 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( @@ -736,7 +732,7 @@ async def test_streaming_response_list_files(self, async_client: AsyncKernel) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_list_files(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -745,7 +741,7 @@ async def test_path_params_list_files(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_move(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.move( @@ -755,7 +751,7 @@ async def test_method_move(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -769,7 +765,7 @@ async def test_raw_response_move(self, async_client: AsyncKernel) -> None: f = await response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -785,7 +781,7 @@ async def test_streaming_response_move(self, async_client: AsyncKernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_move(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -795,7 +791,6 @@ async def test_path_params_move(self, async_client: AsyncKernel) -> None: src_path="/J!", ) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_method_read_file(self, async_client: AsyncKernel, respx_mock: MockRouter) -> None: @@ -809,7 +804,6 @@ async def test_method_read_file(self, async_client: AsyncKernel, respx_mock: Moc assert cast(Any, f.is_closed) is True assert isinstance(f, AsyncBinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_raw_response_read_file(self, async_client: AsyncKernel, respx_mock: MockRouter) -> None: @@ -825,7 +819,6 @@ async def test_raw_response_read_file(self, async_client: AsyncKernel, respx_moc assert await f.json() == {"foo": "bar"} assert isinstance(f, AsyncBinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_streaming_response_read_file(self, async_client: AsyncKernel, respx_mock: MockRouter) -> None: @@ -843,7 +836,6 @@ async def test_streaming_response_read_file(self, async_client: AsyncKernel, res assert cast(Any, f.is_closed) is True - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_path_params_read_file(self, async_client: AsyncKernel) -> None: @@ -853,7 +845,7 @@ async def test_path_params_read_file(self, async_client: AsyncKernel) -> None: path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -863,7 +855,7 @@ async def test_method_set_file_permissions(self, async_client: AsyncKernel) -> N ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -875,7 +867,7 @@ async def test_method_set_file_permissions_with_all_params(self, async_client: A ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -889,7 +881,7 @@ async def test_raw_response_set_file_permissions(self, async_client: AsyncKernel f = await response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -905,7 +897,7 @@ async def test_streaming_response_set_file_permissions(self, async_client: Async assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_set_file_permissions(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -915,7 +907,7 @@ async def test_path_params_set_file_permissions(self, async_client: AsyncKernel) path="/J!", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_write_file(self, async_client: AsyncKernel) -> None: f = await async_client.browsers.fs.write_file( @@ -925,7 +917,7 @@ async def test_method_write_file(self, async_client: AsyncKernel) -> None: ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -936,7 +928,7 @@ async def test_method_write_file_with_all_params(self, async_client: AsyncKernel ) assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -950,7 +942,7 @@ async def test_raw_response_write_file(self, async_client: AsyncKernel) -> None: f = await response.parse() assert f is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -966,7 +958,7 @@ async def test_streaming_response_write_file(self, async_client: AsyncKernel) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_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_replays.py b/tests/api_resources/browsers/test_replays.py index 930d008..df1fed5 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism 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 ''"): @@ -67,7 +67,6 @@ def test_path_params_list(self, client: Kernel) -> None: "", ) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_method_download(self, client: Kernel, respx_mock: MockRouter) -> None: @@ -81,7 +80,6 @@ def test_method_download(self, client: Kernel, respx_mock: MockRouter) -> None: assert cast(Any, replay.is_closed) is True assert isinstance(replay, BinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_raw_response_download(self, client: Kernel, respx_mock: MockRouter) -> None: @@ -97,7 +95,6 @@ def test_raw_response_download(self, client: Kernel, respx_mock: MockRouter) -> assert replay.json() == {"foo": "bar"} assert isinstance(replay, BinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_streaming_response_download(self, client: Kernel, respx_mock: MockRouter) -> None: @@ -115,7 +112,6 @@ def test_streaming_response_download(self, client: Kernel, respx_mock: MockRoute assert cast(Any, replay.is_closed) is True - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) def test_path_params_download(self, client: Kernel) -> None: @@ -131,7 +127,7 @@ def test_path_params_download(self, client: Kernel) -> None: id="id", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_start(self, client: Kernel) -> None: replay = client.browsers.replays.start( @@ -139,7 +135,7 @@ def test_method_start(self, client: Kernel) -> None: ) assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_start_with_all_params(self, client: Kernel) -> None: replay = client.browsers.replays.start( @@ -149,7 +145,7 @@ def test_method_start_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_start(self, client: Kernel) -> None: response = client.browsers.replays.with_raw_response.start( @@ -161,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_start(self, client: Kernel) -> None: with client.browsers.replays.with_streaming_response.start( @@ -175,7 +171,7 @@ def test_streaming_response_start(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_start(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -183,7 +179,7 @@ def test_path_params_start(self, client: Kernel) -> None: id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_stop(self, client: Kernel) -> None: replay = client.browsers.replays.stop( @@ -192,7 +188,7 @@ def test_method_stop(self, client: Kernel) -> None: ) assert replay is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_stop(self, client: Kernel) -> None: response = client.browsers.replays.with_raw_response.stop( @@ -205,7 +201,7 @@ def test_raw_response_stop(self, client: Kernel) -> None: replay = response.parse() assert replay is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_stop(self, client: Kernel) -> None: with client.browsers.replays.with_streaming_response.stop( @@ -220,7 +216,7 @@ def test_streaming_response_stop(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_stop(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -241,7 +237,7 @@ class TestAsyncReplays: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.list( @@ -249,7 +245,7 @@ async def test_method_list(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ReplayListResponse, replay, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -261,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() + @pytest.mark.skip(reason="Prism 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( @@ -275,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() + @pytest.mark.skip(reason="Prism 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 ''"): @@ -283,7 +279,6 @@ async def test_path_params_list(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_method_download(self, async_client: AsyncKernel, respx_mock: MockRouter) -> None: @@ -297,7 +292,6 @@ async def test_method_download(self, async_client: AsyncKernel, respx_mock: Mock assert cast(Any, replay.is_closed) is True assert isinstance(replay, AsyncBinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_raw_response_download(self, async_client: AsyncKernel, respx_mock: MockRouter) -> None: @@ -313,7 +307,6 @@ async def test_raw_response_download(self, async_client: AsyncKernel, respx_mock assert await replay.json() == {"foo": "bar"} assert isinstance(replay, AsyncBinaryAPIResponse) - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_streaming_response_download(self, async_client: AsyncKernel, respx_mock: MockRouter) -> None: @@ -331,7 +324,6 @@ async def test_streaming_response_download(self, async_client: AsyncKernel, resp assert cast(Any, replay.is_closed) is True - @pytest.mark.skip() @parametrize @pytest.mark.respx(base_url=base_url) async def test_path_params_download(self, async_client: AsyncKernel) -> None: @@ -347,7 +339,7 @@ async def test_path_params_download(self, async_client: AsyncKernel) -> None: id="id", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_start(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.start( @@ -355,7 +347,7 @@ async def test_method_start(self, async_client: AsyncKernel) -> None: ) assert_matches_type(ReplayStartResponse, replay, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_start_with_all_params(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.start( @@ -365,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() + @pytest.mark.skip(reason="Prism 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( @@ -377,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() + @pytest.mark.skip(reason="Prism 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( @@ -391,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() + @pytest.mark.skip(reason="Prism 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 ''"): @@ -399,7 +391,7 @@ async def test_path_params_start(self, async_client: AsyncKernel) -> None: id="", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_stop(self, async_client: AsyncKernel) -> None: replay = await async_client.browsers.replays.stop( @@ -408,7 +400,7 @@ async def test_method_stop(self, async_client: AsyncKernel) -> None: ) assert replay is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -421,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() + @pytest.mark.skip(reason="Prism 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( @@ -436,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() + @pytest.mark.skip(reason="Prism 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 05066cd..5e6db3b 100644 --- a/tests/api_resources/test_apps.py +++ b/tests/api_resources/test_apps.py @@ -17,13 +17,13 @@ class TestApps: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: app = client.apps.list() assert_matches_type(AppListResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list_with_all_params(self, client: Kernel) -> None: app = client.apps.list( @@ -32,7 +32,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(AppListResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Kernel) -> None: response = client.apps.with_raw_response.list() @@ -42,7 +42,7 @@ def test_raw_response_list(self, client: Kernel) -> None: app = response.parse() assert_matches_type(AppListResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Kernel) -> None: with client.apps.with_streaming_response.list() as response: @@ -60,13 +60,13 @@ class TestAsyncApps: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: app = await async_client.apps.list() assert_matches_type(AppListResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> None: app = await async_client.apps.list( @@ -75,7 +75,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(AppListResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncKernel) -> None: response = await async_client.apps.with_raw_response.list() @@ -85,7 +85,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: app = await response.parse() assert_matches_type(AppListResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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_browsers.py b/tests/api_resources/test_browsers.py index 8f990be..6f9437f 100644 --- a/tests/api_resources/test_browsers.py +++ b/tests/api_resources/test_browsers.py @@ -21,13 +21,13 @@ class TestBrowsers: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Kernel) -> None: browser = client.browsers.create() assert_matches_type(BrowserCreateResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Kernel) -> None: browser = client.browsers.create( @@ -35,10 +35,11 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: invocation_id="rr33xuugxj9h0bkf1rdt2bet", persistence={"id": "my-awesome-browser-for-user-1234"}, stealth=True, + timeout_seconds=0, ) assert_matches_type(BrowserCreateResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Kernel) -> None: response = client.browsers.with_raw_response.create() @@ -48,7 +49,7 @@ def test_raw_response_create(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(BrowserCreateResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Kernel) -> None: with client.browsers.with_streaming_response.create() as response: @@ -60,7 +61,7 @@ def test_streaming_response_create(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_retrieve(self, client: Kernel) -> None: browser = client.browsers.retrieve( @@ -68,7 +69,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(BrowserRetrieveResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_retrieve(self, client: Kernel) -> None: response = client.browsers.with_raw_response.retrieve( @@ -80,7 +81,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(BrowserRetrieveResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: Kernel) -> None: with client.browsers.with_streaming_response.retrieve( @@ -94,7 +95,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_retrieve(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -102,13 +103,13 @@ def test_path_params_retrieve(self, client: Kernel) -> None: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: browser = client.browsers.list() assert_matches_type(BrowserListResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Kernel) -> None: response = client.browsers.with_raw_response.list() @@ -118,7 +119,7 @@ def test_raw_response_list(self, client: Kernel) -> None: browser = response.parse() assert_matches_type(BrowserListResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Kernel) -> None: with client.browsers.with_streaming_response.list() as response: @@ -130,7 +131,7 @@ def test_streaming_response_list(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete(self, client: Kernel) -> None: browser = client.browsers.delete( @@ -138,7 +139,7 @@ def test_method_delete(self, client: Kernel) -> None: ) assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete(self, client: Kernel) -> None: response = client.browsers.with_raw_response.delete( @@ -150,7 +151,7 @@ def test_raw_response_delete(self, client: Kernel) -> None: browser = response.parse() assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete(self, client: Kernel) -> None: with client.browsers.with_streaming_response.delete( @@ -164,7 +165,7 @@ def test_streaming_response_delete(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete_by_id(self, client: Kernel) -> None: browser = client.browsers.delete_by_id( @@ -172,7 +173,7 @@ def test_method_delete_by_id(self, client: Kernel) -> None: ) assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete_by_id(self, client: Kernel) -> None: response = client.browsers.with_raw_response.delete_by_id( @@ -184,7 +185,7 @@ def test_raw_response_delete_by_id(self, client: Kernel) -> None: browser = response.parse() assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete_by_id(self, client: Kernel) -> None: with client.browsers.with_streaming_response.delete_by_id( @@ -198,7 +199,7 @@ def test_streaming_response_delete_by_id(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete_by_id(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -212,13 +213,13 @@ class TestAsyncBrowsers: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.create() assert_matches_type(BrowserCreateResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.create( @@ -226,10 +227,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> invocation_id="rr33xuugxj9h0bkf1rdt2bet", persistence={"id": "my-awesome-browser-for-user-1234"}, stealth=True, + timeout_seconds=0, ) assert_matches_type(BrowserCreateResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.create() @@ -239,7 +241,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() + @pytest.mark.skip(reason="Prism 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: @@ -251,7 +253,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.retrieve( @@ -259,7 +261,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(BrowserRetrieveResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.retrieve( @@ -271,7 +273,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.retrieve( @@ -285,7 +287,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -293,13 +295,13 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.list() assert_matches_type(BrowserListResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.list() @@ -309,7 +311,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert_matches_type(BrowserListResponse, browser, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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: @@ -321,7 +323,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.delete( @@ -329,7 +331,7 @@ async def test_method_delete(self, async_client: AsyncKernel) -> None: ) assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: response = await async_client.browsers.with_raw_response.delete( @@ -341,7 +343,7 @@ async def test_raw_response_delete(self, async_client: AsyncKernel) -> None: browser = await response.parse() assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncKernel) -> None: async with async_client.browsers.with_streaming_response.delete( @@ -355,7 +357,7 @@ async def test_streaming_response_delete(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete_by_id(self, async_client: AsyncKernel) -> None: browser = await async_client.browsers.delete_by_id( @@ -363,7 +365,7 @@ async def test_method_delete_by_id(self, async_client: AsyncKernel) -> None: ) assert browser is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -375,7 +377,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() + @pytest.mark.skip(reason="Prism 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( @@ -389,7 +391,7 @@ async def test_streaming_response_delete_by_id(self, async_client: AsyncKernel) assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete_by_id(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_deployments.py b/tests/api_resources/test_deployments.py index 3221416..c177978 100644 --- a/tests/api_resources/test_deployments.py +++ b/tests/api_resources/test_deployments.py @@ -21,7 +21,7 @@ class TestDeployments: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Kernel) -> None: deployment = client.deployments.create( @@ -30,7 +30,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Kernel) -> None: deployment = client.deployments.create( @@ -43,7 +43,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Kernel) -> None: response = client.deployments.with_raw_response.create( @@ -56,7 +56,7 @@ def test_raw_response_create(self, client: Kernel) -> None: deployment = response.parse() assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Kernel) -> None: with client.deployments.with_streaming_response.create( @@ -71,7 +71,7 @@ def test_streaming_response_create(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_retrieve(self, client: Kernel) -> None: deployment = client.deployments.retrieve( @@ -79,7 +79,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(DeploymentRetrieveResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_retrieve(self, client: Kernel) -> None: response = client.deployments.with_raw_response.retrieve( @@ -91,7 +91,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: deployment = response.parse() assert_matches_type(DeploymentRetrieveResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: Kernel) -> None: with client.deployments.with_streaming_response.retrieve( @@ -105,7 +105,7 @@ def test_streaming_response_retrieve(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_retrieve(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -113,13 +113,13 @@ def test_path_params_retrieve(self, client: Kernel) -> None: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Kernel) -> None: deployment = client.deployments.list() assert_matches_type(DeploymentListResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list_with_all_params(self, client: Kernel) -> None: deployment = client.deployments.list( @@ -127,7 +127,7 @@ def test_method_list_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(DeploymentListResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Kernel) -> None: response = client.deployments.with_raw_response.list() @@ -137,7 +137,7 @@ def test_raw_response_list(self, client: Kernel) -> None: deployment = response.parse() assert_matches_type(DeploymentListResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Kernel) -> None: with client.deployments.with_streaming_response.list() as response: @@ -149,9 +149,7 @@ def test_streaming_response_list(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_method_follow(self, client: Kernel) -> None: deployment_stream = client.deployments.follow( @@ -159,9 +157,7 @@ def test_method_follow(self, client: Kernel) -> None: ) deployment_stream.response.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_method_follow_with_all_params(self, client: Kernel) -> None: deployment_stream = client.deployments.follow( @@ -170,9 +166,7 @@ def test_method_follow_with_all_params(self, client: Kernel) -> None: ) deployment_stream.response.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_raw_response_follow(self, client: Kernel) -> None: response = client.deployments.with_raw_response.follow( @@ -183,9 +177,7 @@ def test_raw_response_follow(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_streaming_response_follow(self, client: Kernel) -> None: with client.deployments.with_streaming_response.follow( @@ -199,9 +191,7 @@ def test_streaming_response_follow(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @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 ''"): @@ -215,7 +205,7 @@ class TestAsyncDeployments: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncKernel) -> None: deployment = await async_client.deployments.create( @@ -224,7 +214,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> None: deployment = await async_client.deployments.create( @@ -237,7 +227,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(DeploymentCreateResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.create( @@ -250,7 +240,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.create( @@ -265,7 +255,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncKernel) -> None: deployment = await async_client.deployments.retrieve( @@ -273,7 +263,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(DeploymentRetrieveResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.retrieve( @@ -285,7 +275,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.retrieve( @@ -299,7 +289,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -307,13 +297,13 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncKernel) -> None: deployment = await async_client.deployments.list() assert_matches_type(DeploymentListResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> None: deployment = await async_client.deployments.list( @@ -321,7 +311,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncKernel) -> N ) assert_matches_type(DeploymentListResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.list() @@ -331,7 +321,7 @@ async def test_raw_response_list(self, async_client: AsyncKernel) -> None: deployment = await response.parse() assert_matches_type(DeploymentListResponse, deployment, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.list() as response: @@ -343,9 +333,7 @@ async def test_streaming_response_list(self, async_client: AsyncKernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_method_follow(self, async_client: AsyncKernel) -> None: deployment_stream = await async_client.deployments.follow( @@ -353,9 +341,7 @@ async def test_method_follow(self, async_client: AsyncKernel) -> None: ) await deployment_stream.response.aclose() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_method_follow_with_all_params(self, async_client: AsyncKernel) -> None: deployment_stream = await async_client.deployments.follow( @@ -364,9 +350,7 @@ async def test_method_follow_with_all_params(self, async_client: AsyncKernel) -> ) await deployment_stream.response.aclose() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: response = await async_client.deployments.with_raw_response.follow( @@ -377,9 +361,7 @@ async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_streaming_response_follow(self, async_client: AsyncKernel) -> None: async with async_client.deployments.with_streaming_response.follow( @@ -393,9 +375,7 @@ async def test_streaming_response_follow(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @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_invocations.py b/tests/api_resources/test_invocations.py index e739e44..852f7f9 100644 --- a/tests/api_resources/test_invocations.py +++ b/tests/api_resources/test_invocations.py @@ -21,7 +21,7 @@ class TestInvocations: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create(self, client: Kernel) -> None: invocation = client.invocations.create( @@ -31,7 +31,7 @@ def test_method_create(self, client: Kernel) -> None: ) assert_matches_type(InvocationCreateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_create_with_all_params(self, client: Kernel) -> None: invocation = client.invocations.create( @@ -43,7 +43,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(InvocationCreateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Kernel) -> None: response = client.invocations.with_raw_response.create( @@ -57,7 +57,7 @@ def test_raw_response_create(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationCreateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Kernel) -> None: with client.invocations.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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_retrieve(self, client: Kernel) -> None: invocation = client.invocations.retrieve( @@ -81,7 +81,7 @@ def test_method_retrieve(self, client: Kernel) -> None: ) assert_matches_type(InvocationRetrieveResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_retrieve(self, client: Kernel) -> None: response = client.invocations.with_raw_response.retrieve( @@ -93,7 +93,7 @@ def test_raw_response_retrieve(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationRetrieveResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_retrieve(self, client: Kernel) -> None: with client.invocations.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() + @pytest.mark.skip(reason="Prism 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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_update(self, client: Kernel) -> None: invocation = client.invocations.update( @@ -124,7 +124,7 @@ def test_method_update(self, client: Kernel) -> None: ) assert_matches_type(InvocationUpdateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_update_with_all_params(self, client: Kernel) -> None: invocation = client.invocations.update( @@ -134,7 +134,7 @@ def test_method_update_with_all_params(self, client: Kernel) -> None: ) assert_matches_type(InvocationUpdateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_update(self, client: Kernel) -> None: response = client.invocations.with_raw_response.update( @@ -147,7 +147,7 @@ def test_raw_response_update(self, client: Kernel) -> None: invocation = response.parse() assert_matches_type(InvocationUpdateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_update(self, client: Kernel) -> None: with client.invocations.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() + @pytest.mark.skip(reason="Prism 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 ''"): @@ -171,7 +171,7 @@ def test_path_params_update(self, client: Kernel) -> None: status="succeeded", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_delete_browsers(self, client: Kernel) -> None: invocation = client.invocations.delete_browsers( @@ -179,7 +179,7 @@ def test_method_delete_browsers(self, client: Kernel) -> None: ) assert invocation is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete_browsers(self, client: Kernel) -> None: response = client.invocations.with_raw_response.delete_browsers( @@ -191,7 +191,7 @@ def test_raw_response_delete_browsers(self, client: Kernel) -> None: invocation = response.parse() assert invocation is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete_browsers(self, client: Kernel) -> None: with client.invocations.with_streaming_response.delete_browsers( @@ -205,7 +205,7 @@ def test_streaming_response_delete_browsers(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete_browsers(self, client: Kernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -213,9 +213,7 @@ def test_path_params_delete_browsers(self, client: Kernel) -> None: "", ) - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_method_follow(self, client: Kernel) -> None: invocation_stream = client.invocations.follow( @@ -223,9 +221,7 @@ def test_method_follow(self, client: Kernel) -> None: ) invocation_stream.response.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_raw_response_follow(self, client: Kernel) -> None: response = client.invocations.with_raw_response.follow( @@ -236,9 +232,7 @@ def test_raw_response_follow(self, client: Kernel) -> None: stream = response.parse() stream.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize def test_streaming_response_follow(self, client: Kernel) -> None: with client.invocations.with_streaming_response.follow( @@ -252,9 +246,7 @@ def test_streaming_response_follow(self, client: Kernel) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @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 ''"): @@ -268,7 +260,7 @@ class TestAsyncInvocations: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.create( @@ -278,7 +270,7 @@ async def test_method_create(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationCreateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.create( @@ -290,7 +282,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(InvocationCreateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.create( @@ -304,7 +296,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.create( @@ -320,7 +312,7 @@ async def test_streaming_response_create(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_retrieve(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.retrieve( @@ -328,7 +320,7 @@ async def test_method_retrieve(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationRetrieveResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_retrieve(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.retrieve( @@ -340,7 +332,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.retrieve( @@ -354,7 +346,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncKernel) -> N assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -362,7 +354,7 @@ async def test_path_params_retrieve(self, async_client: AsyncKernel) -> None: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_update(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.update( @@ -371,7 +363,7 @@ async def test_method_update(self, async_client: AsyncKernel) -> None: ) assert_matches_type(InvocationUpdateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.update( @@ -381,7 +373,7 @@ async def test_method_update_with_all_params(self, async_client: AsyncKernel) -> ) assert_matches_type(InvocationUpdateResponse, invocation, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_update(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.update( @@ -394,7 +386,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() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_update(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.update( @@ -409,7 +401,7 @@ async def test_streaming_response_update(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_update(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -418,7 +410,7 @@ async def test_path_params_update(self, async_client: AsyncKernel) -> None: status="succeeded", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_delete_browsers(self, async_client: AsyncKernel) -> None: invocation = await async_client.invocations.delete_browsers( @@ -426,7 +418,7 @@ async def test_method_delete_browsers(self, async_client: AsyncKernel) -> None: ) assert invocation is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -438,7 +430,7 @@ async def test_raw_response_delete_browsers(self, async_client: AsyncKernel) -> invocation = await response.parse() assert invocation is None - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism 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( @@ -452,7 +444,7 @@ async def test_streaming_response_delete_browsers(self, async_client: AsyncKerne assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete_browsers(self, async_client: AsyncKernel) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -460,9 +452,7 @@ async def test_path_params_delete_browsers(self, async_client: AsyncKernel) -> N "", ) - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_method_follow(self, async_client: AsyncKernel) -> None: invocation_stream = await async_client.invocations.follow( @@ -470,9 +460,7 @@ async def test_method_follow(self, async_client: AsyncKernel) -> None: ) await invocation_stream.response.aclose() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: response = await async_client.invocations.with_raw_response.follow( @@ -483,9 +471,7 @@ async def test_raw_response_follow(self, async_client: AsyncKernel) -> None: stream = await response.parse() await stream.close() - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @parametrize async def test_streaming_response_follow(self, async_client: AsyncKernel) -> None: async with async_client.invocations.with_streaming_response.follow( @@ -499,9 +485,7 @@ async def test_streaming_response_follow(self, async_client: AsyncKernel) -> Non assert cast(Any, response.is_closed) is True - @pytest.mark.skip( - reason="currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail" - ) + @pytest.mark.skip(reason="Prism doesn't support text/event-stream responses") @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 ''"):