From 5f8681cf63bd5582f71ddf7d5e00b46439516db2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 Aug 2025 02:03:02 +0000 Subject: [PATCH] chore(internal): codegen related update --- tests/api_resources/test_app.py | 64 +++++----- tests/api_resources/test_config.py | 12 +- tests/api_resources/test_event.py | 12 +- tests/api_resources/test_file.py | 24 ++-- tests/api_resources/test_find.py | 36 +++--- tests/api_resources/test_session.py | 192 ++++++++++++++-------------- tests/api_resources/test_tui.py | 24 ++-- 7 files changed, 182 insertions(+), 182 deletions(-) diff --git a/tests/api_resources/test_app.py b/tests/api_resources/test_app.py index 7cea873..e0f0670 100644 --- a/tests/api_resources/test_app.py +++ b/tests/api_resources/test_app.py @@ -23,13 +23,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestApp: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Opencode) -> None: app = client.app.get() assert_matches_type(App, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Opencode) -> None: response = client.app.with_raw_response.get() @@ -39,7 +39,7 @@ class TestApp: app = response.parse() assert_matches_type(App, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Opencode) -> None: with client.app.with_streaming_response.get() as response: @@ -51,13 +51,13 @@ class TestApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_init(self, client: Opencode) -> None: app = client.app.init() assert_matches_type(AppInitResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_init(self, client: Opencode) -> None: response = client.app.with_raw_response.init() @@ -67,7 +67,7 @@ class TestApp: app = response.parse() assert_matches_type(AppInitResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_init(self, client: Opencode) -> None: with client.app.with_streaming_response.init() as response: @@ -79,7 +79,7 @@ class TestApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_log(self, client: Opencode) -> None: app = client.app.log( @@ -89,7 +89,7 @@ class TestApp: ) assert_matches_type(AppLogResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_log_with_all_params(self, client: Opencode) -> None: app = client.app.log( @@ -100,7 +100,7 @@ class TestApp: ) assert_matches_type(AppLogResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_log(self, client: Opencode) -> None: response = client.app.with_raw_response.log( @@ -114,7 +114,7 @@ class TestApp: app = response.parse() assert_matches_type(AppLogResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_log(self, client: Opencode) -> None: with client.app.with_streaming_response.log( @@ -130,13 +130,13 @@ class TestApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_modes(self, client: Opencode) -> None: app = client.app.modes() assert_matches_type(AppModesResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_modes(self, client: Opencode) -> None: response = client.app.with_raw_response.modes() @@ -146,7 +146,7 @@ class TestApp: app = response.parse() assert_matches_type(AppModesResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_modes(self, client: Opencode) -> None: with client.app.with_streaming_response.modes() as response: @@ -158,13 +158,13 @@ class TestApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_providers(self, client: Opencode) -> None: app = client.app.providers() assert_matches_type(AppProvidersResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_providers(self, client: Opencode) -> None: response = client.app.with_raw_response.providers() @@ -174,7 +174,7 @@ class TestApp: app = response.parse() assert_matches_type(AppProvidersResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_providers(self, client: Opencode) -> None: with client.app.with_streaming_response.providers() as response: @@ -192,13 +192,13 @@ class TestAsyncApp: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncOpencode) -> None: app = await async_client.app.get() assert_matches_type(App, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncOpencode) -> None: response = await async_client.app.with_raw_response.get() @@ -208,7 +208,7 @@ class TestAsyncApp: app = await response.parse() assert_matches_type(App, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncOpencode) -> None: async with async_client.app.with_streaming_response.get() as response: @@ -220,13 +220,13 @@ class TestAsyncApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_init(self, async_client: AsyncOpencode) -> None: app = await async_client.app.init() assert_matches_type(AppInitResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_init(self, async_client: AsyncOpencode) -> None: response = await async_client.app.with_raw_response.init() @@ -236,7 +236,7 @@ class TestAsyncApp: app = await response.parse() assert_matches_type(AppInitResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_init(self, async_client: AsyncOpencode) -> None: async with async_client.app.with_streaming_response.init() as response: @@ -248,7 +248,7 @@ class TestAsyncApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_log(self, async_client: AsyncOpencode) -> None: app = await async_client.app.log( @@ -258,7 +258,7 @@ class TestAsyncApp: ) assert_matches_type(AppLogResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_log_with_all_params(self, async_client: AsyncOpencode) -> None: app = await async_client.app.log( @@ -269,7 +269,7 @@ class TestAsyncApp: ) assert_matches_type(AppLogResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_log(self, async_client: AsyncOpencode) -> None: response = await async_client.app.with_raw_response.log( @@ -283,7 +283,7 @@ class TestAsyncApp: app = await response.parse() assert_matches_type(AppLogResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_log(self, async_client: AsyncOpencode) -> None: async with async_client.app.with_streaming_response.log( @@ -299,13 +299,13 @@ class TestAsyncApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_modes(self, async_client: AsyncOpencode) -> None: app = await async_client.app.modes() assert_matches_type(AppModesResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_modes(self, async_client: AsyncOpencode) -> None: response = await async_client.app.with_raw_response.modes() @@ -315,7 +315,7 @@ class TestAsyncApp: app = await response.parse() assert_matches_type(AppModesResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_modes(self, async_client: AsyncOpencode) -> None: async with async_client.app.with_streaming_response.modes() as response: @@ -327,13 +327,13 @@ class TestAsyncApp: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_providers(self, async_client: AsyncOpencode) -> None: app = await async_client.app.providers() assert_matches_type(AppProvidersResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_providers(self, async_client: AsyncOpencode) -> None: response = await async_client.app.with_raw_response.providers() @@ -343,7 +343,7 @@ class TestAsyncApp: app = await response.parse() assert_matches_type(AppProvidersResponse, app, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_providers(self, async_client: AsyncOpencode) -> None: async with async_client.app.with_streaming_response.providers() as response: diff --git a/tests/api_resources/test_config.py b/tests/api_resources/test_config.py index eab370d..86e4c8f 100644 --- a/tests/api_resources/test_config.py +++ b/tests/api_resources/test_config.py @@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestConfig: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_get(self, client: Opencode) -> None: config = client.config.get() assert_matches_type(Config, config, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_get(self, client: Opencode) -> None: response = client.config.with_raw_response.get() @@ -33,7 +33,7 @@ class TestConfig: config = response.parse() assert_matches_type(Config, config, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_get(self, client: Opencode) -> None: with client.config.with_streaming_response.get() as response: @@ -51,13 +51,13 @@ class TestAsyncConfig: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_get(self, async_client: AsyncOpencode) -> None: config = await async_client.config.get() assert_matches_type(Config, config, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_get(self, async_client: AsyncOpencode) -> None: response = await async_client.config.with_raw_response.get() @@ -67,7 +67,7 @@ class TestAsyncConfig: config = await response.parse() assert_matches_type(Config, config, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_get(self, async_client: AsyncOpencode) -> None: async with async_client.config.with_streaming_response.get() as response: diff --git a/tests/api_resources/test_event.py b/tests/api_resources/test_event.py index ec909e9..95de55b 100644 --- a/tests/api_resources/test_event.py +++ b/tests/api_resources/test_event.py @@ -15,13 +15,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestEvent: 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: Opencode) -> None: event_stream = client.event.list() event_stream.response.close() - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Opencode) -> None: response = client.event.with_raw_response.list() @@ -30,7 +30,7 @@ class TestEvent: stream = response.parse() stream.close() - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Opencode) -> None: with client.event.with_streaming_response.list() as response: @@ -48,13 +48,13 @@ class TestAsyncEvent: "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: AsyncOpencode) -> None: event_stream = await async_client.event.list() await event_stream.response.aclose() - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncOpencode) -> None: response = await async_client.event.with_raw_response.list() @@ -63,7 +63,7 @@ class TestAsyncEvent: stream = await response.parse() await stream.close() - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncOpencode) -> None: async with async_client.event.with_streaming_response.list() as response: diff --git a/tests/api_resources/test_file.py b/tests/api_resources/test_file.py index 7298335..cd09854 100644 --- a/tests/api_resources/test_file.py +++ b/tests/api_resources/test_file.py @@ -17,7 +17,7 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestFile: 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_read(self, client: Opencode) -> None: file = client.file.read( @@ -25,7 +25,7 @@ class TestFile: ) assert_matches_type(FileReadResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_read(self, client: Opencode) -> None: response = client.file.with_raw_response.read( @@ -37,7 +37,7 @@ class TestFile: file = response.parse() assert_matches_type(FileReadResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_read(self, client: Opencode) -> None: with client.file.with_streaming_response.read( @@ -51,13 +51,13 @@ class TestFile: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_status(self, client: Opencode) -> None: file = client.file.status() assert_matches_type(FileStatusResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_status(self, client: Opencode) -> None: response = client.file.with_raw_response.status() @@ -67,7 +67,7 @@ class TestFile: file = response.parse() assert_matches_type(FileStatusResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_status(self, client: Opencode) -> None: with client.file.with_streaming_response.status() as response: @@ -85,7 +85,7 @@ class TestAsyncFile: "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_read(self, async_client: AsyncOpencode) -> None: file = await async_client.file.read( @@ -93,7 +93,7 @@ class TestAsyncFile: ) assert_matches_type(FileReadResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_read(self, async_client: AsyncOpencode) -> None: response = await async_client.file.with_raw_response.read( @@ -105,7 +105,7 @@ class TestAsyncFile: file = await response.parse() assert_matches_type(FileReadResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_read(self, async_client: AsyncOpencode) -> None: async with async_client.file.with_streaming_response.read( @@ -119,13 +119,13 @@ class TestAsyncFile: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_status(self, async_client: AsyncOpencode) -> None: file = await async_client.file.status() assert_matches_type(FileStatusResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_status(self, async_client: AsyncOpencode) -> None: response = await async_client.file.with_raw_response.status() @@ -135,7 +135,7 @@ class TestAsyncFile: file = await response.parse() assert_matches_type(FileStatusResponse, file, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_status(self, async_client: AsyncOpencode) -> None: async with async_client.file.with_streaming_response.status() as response: diff --git a/tests/api_resources/test_find.py b/tests/api_resources/test_find.py index fe40d85..cd54e28 100644 --- a/tests/api_resources/test_find.py +++ b/tests/api_resources/test_find.py @@ -21,7 +21,7 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestFind: 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_files(self, client: Opencode) -> None: find = client.find.files( @@ -29,7 +29,7 @@ class TestFind: ) assert_matches_type(FindFilesResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_files(self, client: Opencode) -> None: response = client.find.with_raw_response.files( @@ -41,7 +41,7 @@ class TestFind: find = response.parse() assert_matches_type(FindFilesResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_files(self, client: Opencode) -> None: with client.find.with_streaming_response.files( @@ -55,7 +55,7 @@ class TestFind: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_symbols(self, client: Opencode) -> None: find = client.find.symbols( @@ -63,7 +63,7 @@ class TestFind: ) assert_matches_type(FindSymbolsResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_symbols(self, client: Opencode) -> None: response = client.find.with_raw_response.symbols( @@ -75,7 +75,7 @@ class TestFind: find = response.parse() assert_matches_type(FindSymbolsResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_symbols(self, client: Opencode) -> None: with client.find.with_streaming_response.symbols( @@ -89,7 +89,7 @@ class TestFind: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_text(self, client: Opencode) -> None: find = client.find.text( @@ -97,7 +97,7 @@ class TestFind: ) assert_matches_type(FindTextResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_text(self, client: Opencode) -> None: response = client.find.with_raw_response.text( @@ -109,7 +109,7 @@ class TestFind: find = response.parse() assert_matches_type(FindTextResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_text(self, client: Opencode) -> None: with client.find.with_streaming_response.text( @@ -129,7 +129,7 @@ class TestAsyncFind: "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_files(self, async_client: AsyncOpencode) -> None: find = await async_client.find.files( @@ -137,7 +137,7 @@ class TestAsyncFind: ) assert_matches_type(FindFilesResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_files(self, async_client: AsyncOpencode) -> None: response = await async_client.find.with_raw_response.files( @@ -149,7 +149,7 @@ class TestAsyncFind: find = await response.parse() assert_matches_type(FindFilesResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_files(self, async_client: AsyncOpencode) -> None: async with async_client.find.with_streaming_response.files( @@ -163,7 +163,7 @@ class TestAsyncFind: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_symbols(self, async_client: AsyncOpencode) -> None: find = await async_client.find.symbols( @@ -171,7 +171,7 @@ class TestAsyncFind: ) assert_matches_type(FindSymbolsResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_symbols(self, async_client: AsyncOpencode) -> None: response = await async_client.find.with_raw_response.symbols( @@ -183,7 +183,7 @@ class TestAsyncFind: find = await response.parse() assert_matches_type(FindSymbolsResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_symbols(self, async_client: AsyncOpencode) -> None: async with async_client.find.with_streaming_response.symbols( @@ -197,7 +197,7 @@ class TestAsyncFind: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_text(self, async_client: AsyncOpencode) -> None: find = await async_client.find.text( @@ -205,7 +205,7 @@ class TestAsyncFind: ) assert_matches_type(FindTextResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_text(self, async_client: AsyncOpencode) -> None: response = await async_client.find.with_raw_response.text( @@ -217,7 +217,7 @@ class TestAsyncFind: find = await response.parse() assert_matches_type(FindTextResponse, find, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_text(self, async_client: AsyncOpencode) -> None: async with async_client.find.with_streaming_response.text( diff --git a/tests/api_resources/test_session.py b/tests/api_resources/test_session.py index 9a3f384..15b39d7 100644 --- a/tests/api_resources/test_session.py +++ b/tests/api_resources/test_session.py @@ -26,13 +26,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestSession: 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: Opencode) -> None: session = client.session.create() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_create(self, client: Opencode) -> None: response = client.session.with_raw_response.create() @@ -42,7 +42,7 @@ class TestSession: session = response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_create(self, client: Opencode) -> None: with client.session.with_streaming_response.create() as response: @@ -54,13 +54,13 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_list(self, client: Opencode) -> None: session = client.session.list() assert_matches_type(SessionListResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_list(self, client: Opencode) -> None: response = client.session.with_raw_response.list() @@ -70,7 +70,7 @@ class TestSession: session = response.parse() assert_matches_type(SessionListResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_list(self, client: Opencode) -> None: with client.session.with_streaming_response.list() as response: @@ -82,7 +82,7 @@ class TestSession: 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: Opencode) -> None: session = client.session.delete( @@ -90,7 +90,7 @@ class TestSession: ) assert_matches_type(SessionDeleteResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_delete(self, client: Opencode) -> None: response = client.session.with_raw_response.delete( @@ -102,7 +102,7 @@ class TestSession: session = response.parse() assert_matches_type(SessionDeleteResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_delete(self, client: Opencode) -> None: with client.session.with_streaming_response.delete( @@ -116,7 +116,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_delete(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -124,7 +124,7 @@ class TestSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_abort(self, client: Opencode) -> None: session = client.session.abort( @@ -132,7 +132,7 @@ class TestSession: ) assert_matches_type(SessionAbortResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_abort(self, client: Opencode) -> None: response = client.session.with_raw_response.abort( @@ -144,7 +144,7 @@ class TestSession: session = response.parse() assert_matches_type(SessionAbortResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_abort(self, client: Opencode) -> None: with client.session.with_streaming_response.abort( @@ -158,7 +158,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_abort(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -166,7 +166,7 @@ class TestSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_chat(self, client: Opencode) -> None: session = client.session.chat( @@ -182,7 +182,7 @@ class TestSession: ) assert_matches_type(AssistantMessage, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_chat_with_all_params(self, client: Opencode) -> None: session = client.session.chat( @@ -208,7 +208,7 @@ class TestSession: ) assert_matches_type(AssistantMessage, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_chat(self, client: Opencode) -> None: response = client.session.with_raw_response.chat( @@ -228,7 +228,7 @@ class TestSession: session = response.parse() assert_matches_type(AssistantMessage, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_chat(self, client: Opencode) -> None: with client.session.with_streaming_response.chat( @@ -250,7 +250,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_chat(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -266,7 +266,7 @@ class TestSession: provider_id="providerID", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_init(self, client: Opencode) -> None: session = client.session.init( @@ -277,7 +277,7 @@ class TestSession: ) assert_matches_type(SessionInitResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_init(self, client: Opencode) -> None: response = client.session.with_raw_response.init( @@ -292,7 +292,7 @@ class TestSession: session = response.parse() assert_matches_type(SessionInitResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_init(self, client: Opencode) -> None: with client.session.with_streaming_response.init( @@ -309,7 +309,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_init(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -320,7 +320,7 @@ class TestSession: provider_id="providerID", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_messages(self, client: Opencode) -> None: session = client.session.messages( @@ -328,7 +328,7 @@ class TestSession: ) assert_matches_type(SessionMessagesResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_messages(self, client: Opencode) -> None: response = client.session.with_raw_response.messages( @@ -340,7 +340,7 @@ class TestSession: session = response.parse() assert_matches_type(SessionMessagesResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_messages(self, client: Opencode) -> None: with client.session.with_streaming_response.messages( @@ -354,7 +354,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_messages(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -362,7 +362,7 @@ class TestSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_revert(self, client: Opencode) -> None: session = client.session.revert( @@ -371,7 +371,7 @@ class TestSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_revert_with_all_params(self, client: Opencode) -> None: session = client.session.revert( @@ -381,7 +381,7 @@ class TestSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_revert(self, client: Opencode) -> None: response = client.session.with_raw_response.revert( @@ -394,7 +394,7 @@ class TestSession: session = response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_revert(self, client: Opencode) -> None: with client.session.with_streaming_response.revert( @@ -409,7 +409,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_revert(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -418,7 +418,7 @@ class TestSession: message_id="msg", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_share(self, client: Opencode) -> None: session = client.session.share( @@ -426,7 +426,7 @@ class TestSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_share(self, client: Opencode) -> None: response = client.session.with_raw_response.share( @@ -438,7 +438,7 @@ class TestSession: session = response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_share(self, client: Opencode) -> None: with client.session.with_streaming_response.share( @@ -452,7 +452,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_share(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -460,7 +460,7 @@ class TestSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_summarize(self, client: Opencode) -> None: session = client.session.summarize( @@ -470,7 +470,7 @@ class TestSession: ) assert_matches_type(SessionSummarizeResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_summarize(self, client: Opencode) -> None: response = client.session.with_raw_response.summarize( @@ -484,7 +484,7 @@ class TestSession: session = response.parse() assert_matches_type(SessionSummarizeResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_summarize(self, client: Opencode) -> None: with client.session.with_streaming_response.summarize( @@ -500,7 +500,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_summarize(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -510,7 +510,7 @@ class TestSession: provider_id="providerID", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_unrevert(self, client: Opencode) -> None: session = client.session.unrevert( @@ -518,7 +518,7 @@ class TestSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_unrevert(self, client: Opencode) -> None: response = client.session.with_raw_response.unrevert( @@ -530,7 +530,7 @@ class TestSession: session = response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_unrevert(self, client: Opencode) -> None: with client.session.with_streaming_response.unrevert( @@ -544,7 +544,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_unrevert(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -552,7 +552,7 @@ class TestSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_unshare(self, client: Opencode) -> None: session = client.session.unshare( @@ -560,7 +560,7 @@ class TestSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_unshare(self, client: Opencode) -> None: response = client.session.with_raw_response.unshare( @@ -572,7 +572,7 @@ class TestSession: session = response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_unshare(self, client: Opencode) -> None: with client.session.with_streaming_response.unshare( @@ -586,7 +586,7 @@ class TestSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_path_params_unshare(self, client: Opencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -600,13 +600,13 @@ class TestAsyncSession: "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: AsyncOpencode) -> None: session = await async_client.session.create() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.create() @@ -616,7 +616,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.create() as response: @@ -628,13 +628,13 @@ class TestAsyncSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_list(self, async_client: AsyncOpencode) -> None: session = await async_client.session.list() assert_matches_type(SessionListResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_list(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.list() @@ -644,7 +644,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(SessionListResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_list(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.list() as response: @@ -656,7 +656,7 @@ class TestAsyncSession: 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: AsyncOpencode) -> None: session = await async_client.session.delete( @@ -664,7 +664,7 @@ class TestAsyncSession: ) assert_matches_type(SessionDeleteResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_delete(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.delete( @@ -676,7 +676,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(SessionDeleteResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_delete(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.delete( @@ -690,7 +690,7 @@ class TestAsyncSession: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_path_params_delete(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -698,7 +698,7 @@ class TestAsyncSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_abort(self, async_client: AsyncOpencode) -> None: session = await async_client.session.abort( @@ -706,7 +706,7 @@ class TestAsyncSession: ) assert_matches_type(SessionAbortResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_abort(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.abort( @@ -718,7 +718,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(SessionAbortResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_abort(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.abort( @@ -732,7 +732,7 @@ class TestAsyncSession: 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_abort(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -740,7 +740,7 @@ class TestAsyncSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_chat(self, async_client: AsyncOpencode) -> None: session = await async_client.session.chat( @@ -756,7 +756,7 @@ class TestAsyncSession: ) assert_matches_type(AssistantMessage, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_chat_with_all_params(self, async_client: AsyncOpencode) -> None: session = await async_client.session.chat( @@ -782,7 +782,7 @@ class TestAsyncSession: ) assert_matches_type(AssistantMessage, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_chat(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.chat( @@ -802,7 +802,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(AssistantMessage, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_chat(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.chat( @@ -824,7 +824,7 @@ class TestAsyncSession: 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_chat(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -840,7 +840,7 @@ class TestAsyncSession: provider_id="providerID", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_init(self, async_client: AsyncOpencode) -> None: session = await async_client.session.init( @@ -851,7 +851,7 @@ class TestAsyncSession: ) assert_matches_type(SessionInitResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_init(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.init( @@ -866,7 +866,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(SessionInitResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_init(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.init( @@ -883,7 +883,7 @@ class TestAsyncSession: 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_init(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -894,7 +894,7 @@ class TestAsyncSession: provider_id="providerID", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_messages(self, async_client: AsyncOpencode) -> None: session = await async_client.session.messages( @@ -902,7 +902,7 @@ class TestAsyncSession: ) assert_matches_type(SessionMessagesResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_messages(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.messages( @@ -914,7 +914,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(SessionMessagesResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_messages(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.messages( @@ -928,7 +928,7 @@ class TestAsyncSession: 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_messages(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -936,7 +936,7 @@ class TestAsyncSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_revert(self, async_client: AsyncOpencode) -> None: session = await async_client.session.revert( @@ -945,7 +945,7 @@ class TestAsyncSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_revert_with_all_params(self, async_client: AsyncOpencode) -> None: session = await async_client.session.revert( @@ -955,7 +955,7 @@ class TestAsyncSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_revert(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.revert( @@ -968,7 +968,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_revert(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.revert( @@ -983,7 +983,7 @@ class TestAsyncSession: 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_revert(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -992,7 +992,7 @@ class TestAsyncSession: message_id="msg", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_share(self, async_client: AsyncOpencode) -> None: session = await async_client.session.share( @@ -1000,7 +1000,7 @@ class TestAsyncSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_share(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.share( @@ -1012,7 +1012,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_share(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.share( @@ -1026,7 +1026,7 @@ class TestAsyncSession: 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_share(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1034,7 +1034,7 @@ class TestAsyncSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_summarize(self, async_client: AsyncOpencode) -> None: session = await async_client.session.summarize( @@ -1044,7 +1044,7 @@ class TestAsyncSession: ) assert_matches_type(SessionSummarizeResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_summarize(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.summarize( @@ -1058,7 +1058,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(SessionSummarizeResponse, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_summarize(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.summarize( @@ -1074,7 +1074,7 @@ class TestAsyncSession: 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_summarize(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1084,7 +1084,7 @@ class TestAsyncSession: provider_id="providerID", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_unrevert(self, async_client: AsyncOpencode) -> None: session = await async_client.session.unrevert( @@ -1092,7 +1092,7 @@ class TestAsyncSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_unrevert(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.unrevert( @@ -1104,7 +1104,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_unrevert(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.unrevert( @@ -1118,7 +1118,7 @@ class TestAsyncSession: 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_unrevert(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): @@ -1126,7 +1126,7 @@ class TestAsyncSession: "", ) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_unshare(self, async_client: AsyncOpencode) -> None: session = await async_client.session.unshare( @@ -1134,7 +1134,7 @@ class TestAsyncSession: ) assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_unshare(self, async_client: AsyncOpencode) -> None: response = await async_client.session.with_raw_response.unshare( @@ -1146,7 +1146,7 @@ class TestAsyncSession: session = await response.parse() assert_matches_type(Session, session, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_unshare(self, async_client: AsyncOpencode) -> None: async with async_client.session.with_streaming_response.unshare( @@ -1160,7 +1160,7 @@ class TestAsyncSession: 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_unshare(self, async_client: AsyncOpencode) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"): diff --git a/tests/api_resources/test_tui.py b/tests/api_resources/test_tui.py index 50f907a..06145a5 100644 --- a/tests/api_resources/test_tui.py +++ b/tests/api_resources/test_tui.py @@ -17,7 +17,7 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010") class TestTui: 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_append_prompt(self, client: Opencode) -> None: tui = client.tui.append_prompt( @@ -25,7 +25,7 @@ class TestTui: ) assert_matches_type(TuiAppendPromptResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_append_prompt(self, client: Opencode) -> None: response = client.tui.with_raw_response.append_prompt( @@ -37,7 +37,7 @@ class TestTui: tui = response.parse() assert_matches_type(TuiAppendPromptResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_append_prompt(self, client: Opencode) -> None: with client.tui.with_streaming_response.append_prompt( @@ -51,13 +51,13 @@ class TestTui: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_method_open_help(self, client: Opencode) -> None: tui = client.tui.open_help() assert_matches_type(TuiOpenHelpResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_raw_response_open_help(self, client: Opencode) -> None: response = client.tui.with_raw_response.open_help() @@ -67,7 +67,7 @@ class TestTui: tui = response.parse() assert_matches_type(TuiOpenHelpResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize def test_streaming_response_open_help(self, client: Opencode) -> None: with client.tui.with_streaming_response.open_help() as response: @@ -85,7 +85,7 @@ class TestAsyncTui: "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_append_prompt(self, async_client: AsyncOpencode) -> None: tui = await async_client.tui.append_prompt( @@ -93,7 +93,7 @@ class TestAsyncTui: ) assert_matches_type(TuiAppendPromptResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_append_prompt(self, async_client: AsyncOpencode) -> None: response = await async_client.tui.with_raw_response.append_prompt( @@ -105,7 +105,7 @@ class TestAsyncTui: tui = await response.parse() assert_matches_type(TuiAppendPromptResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_append_prompt(self, async_client: AsyncOpencode) -> None: async with async_client.tui.with_streaming_response.append_prompt( @@ -119,13 +119,13 @@ class TestAsyncTui: assert cast(Any, response.is_closed) is True - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_method_open_help(self, async_client: AsyncOpencode) -> None: tui = await async_client.tui.open_help() assert_matches_type(TuiOpenHelpResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_raw_response_open_help(self, async_client: AsyncOpencode) -> None: response = await async_client.tui.with_raw_response.open_help() @@ -135,7 +135,7 @@ class TestAsyncTui: tui = await response.parse() assert_matches_type(TuiOpenHelpResponse, tui, path=["response"]) - @pytest.mark.skip() + @pytest.mark.skip(reason="Prism tests are disabled") @parametrize async def test_streaming_response_open_help(self, async_client: AsyncOpencode) -> None: async with async_client.tui.with_streaming_response.open_help() as response: