diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e9af1b..7325798 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.4.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 32808d2..56f5a81 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 17 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f -config_hash: ab495a165f0919b37cbf9efbd0f0e6ef +config_hash: 41c337f5cda03b13880617490f82bad0 diff --git a/CHANGELOG.md b/CHANGELOG.md index ff6b6c4..61d9a73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.4.1 (2026-02-20) + +Full Changelog: [v1.4.0...v1.4.1](https://github.com/CASParser/cas-parser-python/compare/v1.4.0...v1.4.1) + +### Chores + +* **internal:** remove mock server code ([582f64d](https://github.com/CASParser/cas-parser-python/commit/582f64db76f09909f2c406877633b3db56b492dc)) +* update mock server docs ([d2942ae](https://github.com/CASParser/cas-parser-python/commit/d2942aef06e12bb1e57040358b68555f7e28bf15)) + ## 1.4.0 (2026-02-14) Full Changelog: [v1.3.2...v1.4.0](https://github.com/CASParser/cas-parser-python/compare/v1.3.2...v1.4.0) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5274c21..718d320 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl ## Running tests -Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. - -```sh -# you will need npm installed -$ npx prism mock path/to/your/openapi.yml -``` - ```sh $ ./scripts/test ``` diff --git a/pyproject.toml b/pyproject.toml index 54fc544..e9c0aea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cas-parser-python" -version = "1.4.0" +version = "1.4.1" description = "The official Python library for the cas-parser API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/scripts/mock b/scripts/mock deleted file mode 100755 index 0b28f6e..0000000 --- a/scripts/mock +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -e - -cd "$(dirname "$0")/.." - -if [[ -n "$1" && "$1" != '--'* ]]; then - URL="$1" - shift -else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" - exit 1 -fi - -echo "==> Starting mock server with URL ${URL}" - -# Run prism mock on the given spec -if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - - # Wait for server to come online - echo -n "Waiting for server" - while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do - echo -n "." - sleep 0.1 - done - - if grep -q "✖ fatal" ".prism.log"; then - cat .prism.log - exit 1 - fi - - echo -else - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" -fi diff --git a/scripts/test b/scripts/test index b56970b..fe50ebb 100755 --- a/scripts/test +++ b/scripts/test @@ -4,53 +4,7 @@ set -e cd "$(dirname "$0")/.." -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -NC='\033[0m' # No Color -function prism_is_running() { - curl --silent "http://localhost:4010" >/dev/null 2>&1 -} - -kill_server_on_port() { - pids=$(lsof -t -i tcp:"$1" || echo "") - if [ "$pids" != "" ]; then - kill "$pids" - echo "Stopped $pids." - fi -} - -function is_overriding_api_base_url() { - [ -n "$TEST_API_BASE_URL" ] -} - -if ! is_overriding_api_base_url && ! prism_is_running ; then - # When we exit this script, make sure to kill the background mock server process - trap 'kill_server_on_port 4010' EXIT - - # Start the dev server - ./scripts/mock --daemon -fi - -if is_overriding_api_base_url ; then - echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}" - echo -elif ! prism_is_running ; then - echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server" - echo -e "running against your OpenAPI spec." - echo - echo -e "To run the server, pass in the path or url of your OpenAPI" - echo -e "spec to the prism command:" - echo - echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" - echo - - exit 1 -else - echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}" - echo -fi export DEFER_PYDANTIC_BUILD=false diff --git a/src/cas_parser/_version.py b/src/cas_parser/_version.py index 682501f..eaa6152 100644 --- a/src/cas_parser/_version.py +++ b/src/cas_parser/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "cas_parser" -__version__ = "1.4.0" # x-release-please-version +__version__ = "1.4.1" # x-release-please-version diff --git a/tests/api_resources/cdsl/test_fetch.py b/tests/api_resources/cdsl/test_fetch.py index a4b92cc..c97c019 100644 --- a/tests/api_resources/cdsl/test_fetch.py +++ b/tests/api_resources/cdsl/test_fetch.py @@ -20,7 +20,7 @@ class TestFetch: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_request_otp(self, client: CasParser) -> None: fetch = client.cdsl.fetch.request_otp( @@ -30,7 +30,7 @@ def test_method_request_otp(self, client: CasParser) -> None: ) assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_request_otp(self, client: CasParser) -> None: response = client.cdsl.fetch.with_raw_response.request_otp( @@ -44,7 +44,7 @@ def test_raw_response_request_otp(self, client: CasParser) -> None: fetch = response.parse() assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_request_otp(self, client: CasParser) -> None: with client.cdsl.fetch.with_streaming_response.request_otp( @@ -60,7 +60,7 @@ def test_streaming_response_request_otp(self, client: CasParser) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_verify_otp(self, client: CasParser) -> None: fetch = client.cdsl.fetch.verify_otp( @@ -69,7 +69,7 @@ def test_method_verify_otp(self, client: CasParser) -> None: ) assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_verify_otp_with_all_params(self, client: CasParser) -> None: fetch = client.cdsl.fetch.verify_otp( @@ -79,7 +79,7 @@ def test_method_verify_otp_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_verify_otp(self, client: CasParser) -> None: response = client.cdsl.fetch.with_raw_response.verify_otp( @@ -92,7 +92,7 @@ def test_raw_response_verify_otp(self, client: CasParser) -> None: fetch = response.parse() assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_verify_otp(self, client: CasParser) -> None: with client.cdsl.fetch.with_streaming_response.verify_otp( @@ -107,7 +107,7 @@ def test_streaming_response_verify_otp(self, client: CasParser) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_path_params_verify_otp(self, client: CasParser) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `session_id` but received ''"): @@ -122,7 +122,7 @@ class TestAsyncFetch: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_request_otp(self, async_client: AsyncCasParser) -> None: fetch = await async_client.cdsl.fetch.request_otp( @@ -132,7 +132,7 @@ async def test_method_request_otp(self, async_client: AsyncCasParser) -> None: ) assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_request_otp(self, async_client: AsyncCasParser) -> None: response = await async_client.cdsl.fetch.with_raw_response.request_otp( @@ -146,7 +146,7 @@ async def test_raw_response_request_otp(self, async_client: AsyncCasParser) -> N fetch = await response.parse() assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_request_otp(self, async_client: AsyncCasParser) -> None: async with async_client.cdsl.fetch.with_streaming_response.request_otp( @@ -162,7 +162,7 @@ async def test_streaming_response_request_otp(self, async_client: AsyncCasParser assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_verify_otp(self, async_client: AsyncCasParser) -> None: fetch = await async_client.cdsl.fetch.verify_otp( @@ -171,7 +171,7 @@ async def test_method_verify_otp(self, async_client: AsyncCasParser) -> None: ) assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_verify_otp_with_all_params(self, async_client: AsyncCasParser) -> None: fetch = await async_client.cdsl.fetch.verify_otp( @@ -181,7 +181,7 @@ async def test_method_verify_otp_with_all_params(self, async_client: AsyncCasPar ) assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_verify_otp(self, async_client: AsyncCasParser) -> None: response = await async_client.cdsl.fetch.with_raw_response.verify_otp( @@ -194,7 +194,7 @@ async def test_raw_response_verify_otp(self, async_client: AsyncCasParser) -> No fetch = await response.parse() assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_verify_otp(self, async_client: AsyncCasParser) -> None: async with async_client.cdsl.fetch.with_streaming_response.verify_otp( @@ -209,7 +209,7 @@ async def test_streaming_response_verify_otp(self, async_client: AsyncCasParser) assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_path_params_verify_otp(self, async_client: AsyncCasParser) -> None: with pytest.raises(ValueError, match=r"Expected a non-empty value for `session_id` but received ''"): diff --git a/tests/api_resources/test_access_token.py b/tests/api_resources/test_access_token.py index 3edd508..32d63c9 100644 --- a/tests/api_resources/test_access_token.py +++ b/tests/api_resources/test_access_token.py @@ -17,13 +17,13 @@ class TestAccessToken: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: CasParser) -> None: access_token = client.access_token.create() assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: CasParser) -> None: access_token = client.access_token.create( @@ -31,7 +31,7 @@ def test_method_create_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: CasParser) -> None: response = client.access_token.with_raw_response.create() @@ -41,7 +41,7 @@ def test_raw_response_create(self, client: CasParser) -> None: access_token = response.parse() assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: CasParser) -> None: with client.access_token.with_streaming_response.create() as response: @@ -59,13 +59,13 @@ class TestAsyncAccessToken: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncCasParser) -> None: access_token = await async_client.access_token.create() assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncCasParser) -> None: access_token = await async_client.access_token.create( @@ -73,7 +73,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCasParser) ) assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncCasParser) -> None: response = await async_client.access_token.with_raw_response.create() @@ -83,7 +83,7 @@ async def test_raw_response_create(self, async_client: AsyncCasParser) -> None: access_token = await response.parse() assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncCasParser) -> None: async with async_client.access_token.with_streaming_response.create() as response: diff --git a/tests/api_resources/test_cams_kfintech.py b/tests/api_resources/test_cams_kfintech.py index b9d8d0e..362fa42 100644 --- a/tests/api_resources/test_cams_kfintech.py +++ b/tests/api_resources/test_cams_kfintech.py @@ -17,13 +17,13 @@ class TestCamsKfintech: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse(self, client: CasParser) -> None: cams_kfintech = client.cams_kfintech.parse() assert_matches_type(UnifiedResponse, cams_kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_with_all_params(self, client: CasParser) -> None: cams_kfintech = client.cams_kfintech.parse( @@ -33,7 +33,7 @@ def test_method_parse_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(UnifiedResponse, cams_kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_parse(self, client: CasParser) -> None: response = client.cams_kfintech.with_raw_response.parse() @@ -43,7 +43,7 @@ def test_raw_response_parse(self, client: CasParser) -> None: cams_kfintech = response.parse() assert_matches_type(UnifiedResponse, cams_kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_parse(self, client: CasParser) -> None: with client.cams_kfintech.with_streaming_response.parse() as response: @@ -61,13 +61,13 @@ class TestAsyncCamsKfintech: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse(self, async_client: AsyncCasParser) -> None: cams_kfintech = await async_client.cams_kfintech.parse() assert_matches_type(UnifiedResponse, cams_kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_with_all_params(self, async_client: AsyncCasParser) -> None: cams_kfintech = await async_client.cams_kfintech.parse( @@ -77,7 +77,7 @@ async def test_method_parse_with_all_params(self, async_client: AsyncCasParser) ) assert_matches_type(UnifiedResponse, cams_kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_parse(self, async_client: AsyncCasParser) -> None: response = await async_client.cams_kfintech.with_raw_response.parse() @@ -87,7 +87,7 @@ async def test_raw_response_parse(self, async_client: AsyncCasParser) -> None: cams_kfintech = await response.parse() assert_matches_type(UnifiedResponse, cams_kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_parse(self, async_client: AsyncCasParser) -> None: async with async_client.cams_kfintech.with_streaming_response.parse() as response: diff --git a/tests/api_resources/test_cdsl.py b/tests/api_resources/test_cdsl.py index a047f79..781e725 100644 --- a/tests/api_resources/test_cdsl.py +++ b/tests/api_resources/test_cdsl.py @@ -17,13 +17,13 @@ class TestCdsl: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_pdf(self, client: CasParser) -> None: cdsl = client.cdsl.parse_pdf() assert_matches_type(UnifiedResponse, cdsl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_pdf_with_all_params(self, client: CasParser) -> None: cdsl = client.cdsl.parse_pdf( @@ -33,7 +33,7 @@ def test_method_parse_pdf_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(UnifiedResponse, cdsl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_parse_pdf(self, client: CasParser) -> None: response = client.cdsl.with_raw_response.parse_pdf() @@ -43,7 +43,7 @@ def test_raw_response_parse_pdf(self, client: CasParser) -> None: cdsl = response.parse() assert_matches_type(UnifiedResponse, cdsl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_parse_pdf(self, client: CasParser) -> None: with client.cdsl.with_streaming_response.parse_pdf() as response: @@ -61,13 +61,13 @@ class TestAsyncCdsl: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_pdf(self, async_client: AsyncCasParser) -> None: cdsl = await async_client.cdsl.parse_pdf() assert_matches_type(UnifiedResponse, cdsl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_pdf_with_all_params(self, async_client: AsyncCasParser) -> None: cdsl = await async_client.cdsl.parse_pdf( @@ -77,7 +77,7 @@ async def test_method_parse_pdf_with_all_params(self, async_client: AsyncCasPars ) assert_matches_type(UnifiedResponse, cdsl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_parse_pdf(self, async_client: AsyncCasParser) -> None: response = await async_client.cdsl.with_raw_response.parse_pdf() @@ -87,7 +87,7 @@ async def test_raw_response_parse_pdf(self, async_client: AsyncCasParser) -> Non cdsl = await response.parse() assert_matches_type(UnifiedResponse, cdsl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_parse_pdf(self, async_client: AsyncCasParser) -> None: async with async_client.cdsl.with_streaming_response.parse_pdf() as response: diff --git a/tests/api_resources/test_contract_note.py b/tests/api_resources/test_contract_note.py index 5e39156..e19d592 100644 --- a/tests/api_resources/test_contract_note.py +++ b/tests/api_resources/test_contract_note.py @@ -17,13 +17,13 @@ class TestContractNote: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse(self, client: CasParser) -> None: contract_note = client.contract_note.parse() assert_matches_type(ContractNoteParseResponse, contract_note, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_with_all_params(self, client: CasParser) -> None: contract_note = client.contract_note.parse( @@ -34,7 +34,7 @@ def test_method_parse_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(ContractNoteParseResponse, contract_note, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_parse(self, client: CasParser) -> None: response = client.contract_note.with_raw_response.parse() @@ -44,7 +44,7 @@ def test_raw_response_parse(self, client: CasParser) -> None: contract_note = response.parse() assert_matches_type(ContractNoteParseResponse, contract_note, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_parse(self, client: CasParser) -> None: with client.contract_note.with_streaming_response.parse() as response: @@ -62,13 +62,13 @@ class TestAsyncContractNote: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse(self, async_client: AsyncCasParser) -> None: contract_note = await async_client.contract_note.parse() assert_matches_type(ContractNoteParseResponse, contract_note, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_with_all_params(self, async_client: AsyncCasParser) -> None: contract_note = await async_client.contract_note.parse( @@ -79,7 +79,7 @@ async def test_method_parse_with_all_params(self, async_client: AsyncCasParser) ) assert_matches_type(ContractNoteParseResponse, contract_note, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_parse(self, async_client: AsyncCasParser) -> None: response = await async_client.contract_note.with_raw_response.parse() @@ -89,7 +89,7 @@ async def test_raw_response_parse(self, async_client: AsyncCasParser) -> None: contract_note = await response.parse() assert_matches_type(ContractNoteParseResponse, contract_note, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_parse(self, async_client: AsyncCasParser) -> None: async with async_client.contract_note.with_streaming_response.parse() as response: diff --git a/tests/api_resources/test_credits.py b/tests/api_resources/test_credits.py index e761b62..8538889 100644 --- a/tests/api_resources/test_credits.py +++ b/tests/api_resources/test_credits.py @@ -17,13 +17,13 @@ class TestCredits: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_check(self, client: CasParser) -> None: credit = client.credits.check() assert_matches_type(CreditCheckResponse, credit, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_check(self, client: CasParser) -> None: response = client.credits.with_raw_response.check() @@ -33,7 +33,7 @@ def test_raw_response_check(self, client: CasParser) -> None: credit = response.parse() assert_matches_type(CreditCheckResponse, credit, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_check(self, client: CasParser) -> None: with client.credits.with_streaming_response.check() as response: @@ -51,13 +51,13 @@ class TestAsyncCredits: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_check(self, async_client: AsyncCasParser) -> None: credit = await async_client.credits.check() assert_matches_type(CreditCheckResponse, credit, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_check(self, async_client: AsyncCasParser) -> None: response = await async_client.credits.with_raw_response.check() @@ -67,7 +67,7 @@ async def test_raw_response_check(self, async_client: AsyncCasParser) -> None: credit = await response.parse() assert_matches_type(CreditCheckResponse, credit, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_check(self, async_client: AsyncCasParser) -> None: async with async_client.credits.with_streaming_response.check() as response: diff --git a/tests/api_resources/test_inbox.py b/tests/api_resources/test_inbox.py index d41ebc8..3924127 100644 --- a/tests/api_resources/test_inbox.py +++ b/tests/api_resources/test_inbox.py @@ -23,7 +23,7 @@ class TestInbox: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_check_connection_status(self, client: CasParser) -> None: inbox = client.inbox.check_connection_status( @@ -31,7 +31,7 @@ def test_method_check_connection_status(self, client: CasParser) -> None: ) assert_matches_type(InboxCheckConnectionStatusResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_check_connection_status(self, client: CasParser) -> None: response = client.inbox.with_raw_response.check_connection_status( @@ -43,7 +43,7 @@ def test_raw_response_check_connection_status(self, client: CasParser) -> None: inbox = response.parse() assert_matches_type(InboxCheckConnectionStatusResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_check_connection_status(self, client: CasParser) -> None: with client.inbox.with_streaming_response.check_connection_status( @@ -57,7 +57,7 @@ def test_streaming_response_check_connection_status(self, client: CasParser) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_connect_email(self, client: CasParser) -> None: inbox = client.inbox.connect_email( @@ -65,7 +65,7 @@ def test_method_connect_email(self, client: CasParser) -> None: ) assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_connect_email_with_all_params(self, client: CasParser) -> None: inbox = client.inbox.connect_email( @@ -74,7 +74,7 @@ def test_method_connect_email_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_connect_email(self, client: CasParser) -> None: response = client.inbox.with_raw_response.connect_email( @@ -86,7 +86,7 @@ def test_raw_response_connect_email(self, client: CasParser) -> None: inbox = response.parse() assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_connect_email(self, client: CasParser) -> None: with client.inbox.with_streaming_response.connect_email( @@ -100,7 +100,7 @@ def test_streaming_response_connect_email(self, client: CasParser) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_disconnect_email(self, client: CasParser) -> None: inbox = client.inbox.disconnect_email( @@ -108,7 +108,7 @@ def test_method_disconnect_email(self, client: CasParser) -> None: ) assert_matches_type(InboxDisconnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_disconnect_email(self, client: CasParser) -> None: response = client.inbox.with_raw_response.disconnect_email( @@ -120,7 +120,7 @@ def test_raw_response_disconnect_email(self, client: CasParser) -> None: inbox = response.parse() assert_matches_type(InboxDisconnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_disconnect_email(self, client: CasParser) -> None: with client.inbox.with_streaming_response.disconnect_email( @@ -134,7 +134,7 @@ def test_streaming_response_disconnect_email(self, client: CasParser) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_cas_files(self, client: CasParser) -> None: inbox = client.inbox.list_cas_files( @@ -142,7 +142,7 @@ def test_method_list_cas_files(self, client: CasParser) -> None: ) assert_matches_type(InboxListCasFilesResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_list_cas_files_with_all_params(self, client: CasParser) -> None: inbox = client.inbox.list_cas_files( @@ -153,7 +153,7 @@ def test_method_list_cas_files_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(InboxListCasFilesResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_list_cas_files(self, client: CasParser) -> None: response = client.inbox.with_raw_response.list_cas_files( @@ -165,7 +165,7 @@ def test_raw_response_list_cas_files(self, client: CasParser) -> None: inbox = response.parse() assert_matches_type(InboxListCasFilesResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_list_cas_files(self, client: CasParser) -> None: with client.inbox.with_streaming_response.list_cas_files( @@ -185,7 +185,7 @@ class TestAsyncInbox: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_check_connection_status(self, async_client: AsyncCasParser) -> None: inbox = await async_client.inbox.check_connection_status( @@ -193,7 +193,7 @@ async def test_method_check_connection_status(self, async_client: AsyncCasParser ) assert_matches_type(InboxCheckConnectionStatusResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_check_connection_status(self, async_client: AsyncCasParser) -> None: response = await async_client.inbox.with_raw_response.check_connection_status( @@ -205,7 +205,7 @@ async def test_raw_response_check_connection_status(self, async_client: AsyncCas inbox = await response.parse() assert_matches_type(InboxCheckConnectionStatusResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_check_connection_status(self, async_client: AsyncCasParser) -> None: async with async_client.inbox.with_streaming_response.check_connection_status( @@ -219,7 +219,7 @@ async def test_streaming_response_check_connection_status(self, async_client: As assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_connect_email(self, async_client: AsyncCasParser) -> None: inbox = await async_client.inbox.connect_email( @@ -227,7 +227,7 @@ async def test_method_connect_email(self, async_client: AsyncCasParser) -> None: ) assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_connect_email_with_all_params(self, async_client: AsyncCasParser) -> None: inbox = await async_client.inbox.connect_email( @@ -236,7 +236,7 @@ async def test_method_connect_email_with_all_params(self, async_client: AsyncCas ) assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_connect_email(self, async_client: AsyncCasParser) -> None: response = await async_client.inbox.with_raw_response.connect_email( @@ -248,7 +248,7 @@ async def test_raw_response_connect_email(self, async_client: AsyncCasParser) -> inbox = await response.parse() assert_matches_type(InboxConnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_connect_email(self, async_client: AsyncCasParser) -> None: async with async_client.inbox.with_streaming_response.connect_email( @@ -262,7 +262,7 @@ async def test_streaming_response_connect_email(self, async_client: AsyncCasPars assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_disconnect_email(self, async_client: AsyncCasParser) -> None: inbox = await async_client.inbox.disconnect_email( @@ -270,7 +270,7 @@ async def test_method_disconnect_email(self, async_client: AsyncCasParser) -> No ) assert_matches_type(InboxDisconnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_disconnect_email(self, async_client: AsyncCasParser) -> None: response = await async_client.inbox.with_raw_response.disconnect_email( @@ -282,7 +282,7 @@ async def test_raw_response_disconnect_email(self, async_client: AsyncCasParser) inbox = await response.parse() assert_matches_type(InboxDisconnectEmailResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_disconnect_email(self, async_client: AsyncCasParser) -> None: async with async_client.inbox.with_streaming_response.disconnect_email( @@ -296,7 +296,7 @@ async def test_streaming_response_disconnect_email(self, async_client: AsyncCasP assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_cas_files(self, async_client: AsyncCasParser) -> None: inbox = await async_client.inbox.list_cas_files( @@ -304,7 +304,7 @@ async def test_method_list_cas_files(self, async_client: AsyncCasParser) -> None ) assert_matches_type(InboxListCasFilesResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_list_cas_files_with_all_params(self, async_client: AsyncCasParser) -> None: inbox = await async_client.inbox.list_cas_files( @@ -315,7 +315,7 @@ async def test_method_list_cas_files_with_all_params(self, async_client: AsyncCa ) assert_matches_type(InboxListCasFilesResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_list_cas_files(self, async_client: AsyncCasParser) -> None: response = await async_client.inbox.with_raw_response.list_cas_files( @@ -327,7 +327,7 @@ async def test_raw_response_list_cas_files(self, async_client: AsyncCasParser) - inbox = await response.parse() assert_matches_type(InboxListCasFilesResponse, inbox, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_list_cas_files(self, async_client: AsyncCasParser) -> None: async with async_client.inbox.with_streaming_response.list_cas_files( diff --git a/tests/api_resources/test_kfintech.py b/tests/api_resources/test_kfintech.py index fee4673..1ad3779 100644 --- a/tests/api_resources/test_kfintech.py +++ b/tests/api_resources/test_kfintech.py @@ -17,7 +17,7 @@ class TestKfintech: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_generate_cas(self, client: CasParser) -> None: kfintech = client.kfintech.generate_cas( @@ -28,7 +28,7 @@ def test_method_generate_cas(self, client: CasParser) -> None: ) assert_matches_type(KfintechGenerateCasResponse, kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_generate_cas_with_all_params(self, client: CasParser) -> None: kfintech = client.kfintech.generate_cas( @@ -40,7 +40,7 @@ def test_method_generate_cas_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(KfintechGenerateCasResponse, kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_generate_cas(self, client: CasParser) -> None: response = client.kfintech.with_raw_response.generate_cas( @@ -55,7 +55,7 @@ def test_raw_response_generate_cas(self, client: CasParser) -> None: kfintech = response.parse() assert_matches_type(KfintechGenerateCasResponse, kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_generate_cas(self, client: CasParser) -> None: with client.kfintech.with_streaming_response.generate_cas( @@ -78,7 +78,7 @@ class TestAsyncKfintech: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_generate_cas(self, async_client: AsyncCasParser) -> None: kfintech = await async_client.kfintech.generate_cas( @@ -89,7 +89,7 @@ async def test_method_generate_cas(self, async_client: AsyncCasParser) -> None: ) assert_matches_type(KfintechGenerateCasResponse, kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_generate_cas_with_all_params(self, async_client: AsyncCasParser) -> None: kfintech = await async_client.kfintech.generate_cas( @@ -101,7 +101,7 @@ async def test_method_generate_cas_with_all_params(self, async_client: AsyncCasP ) assert_matches_type(KfintechGenerateCasResponse, kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_generate_cas(self, async_client: AsyncCasParser) -> None: response = await async_client.kfintech.with_raw_response.generate_cas( @@ -116,7 +116,7 @@ async def test_raw_response_generate_cas(self, async_client: AsyncCasParser) -> kfintech = await response.parse() assert_matches_type(KfintechGenerateCasResponse, kfintech, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_generate_cas(self, async_client: AsyncCasParser) -> None: async with async_client.kfintech.with_streaming_response.generate_cas( diff --git a/tests/api_resources/test_logs.py b/tests/api_resources/test_logs.py index 226ca42..43908ef 100644 --- a/tests/api_resources/test_logs.py +++ b/tests/api_resources/test_logs.py @@ -18,13 +18,13 @@ class TestLogs: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create(self, client: CasParser) -> None: log = client.logs.create() assert_matches_type(LogCreateResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_create_with_all_params(self, client: CasParser) -> None: log = client.logs.create( @@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(LogCreateResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_create(self, client: CasParser) -> None: response = client.logs.with_raw_response.create() @@ -44,7 +44,7 @@ def test_raw_response_create(self, client: CasParser) -> None: log = response.parse() assert_matches_type(LogCreateResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_create(self, client: CasParser) -> None: with client.logs.with_streaming_response.create() as response: @@ -56,13 +56,13 @@ def test_streaming_response_create(self, client: CasParser) -> None: assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_summary(self, client: CasParser) -> None: log = client.logs.get_summary() assert_matches_type(LogGetSummaryResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_get_summary_with_all_params(self, client: CasParser) -> None: log = client.logs.get_summary( @@ -71,7 +71,7 @@ def test_method_get_summary_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(LogGetSummaryResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_get_summary(self, client: CasParser) -> None: response = client.logs.with_raw_response.get_summary() @@ -81,7 +81,7 @@ def test_raw_response_get_summary(self, client: CasParser) -> None: log = response.parse() assert_matches_type(LogGetSummaryResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_get_summary(self, client: CasParser) -> None: with client.logs.with_streaming_response.get_summary() as response: @@ -99,13 +99,13 @@ class TestAsyncLogs: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create(self, async_client: AsyncCasParser) -> None: log = await async_client.logs.create() assert_matches_type(LogCreateResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_create_with_all_params(self, async_client: AsyncCasParser) -> None: log = await async_client.logs.create( @@ -115,7 +115,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncCasParser) ) assert_matches_type(LogCreateResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_create(self, async_client: AsyncCasParser) -> None: response = await async_client.logs.with_raw_response.create() @@ -125,7 +125,7 @@ async def test_raw_response_create(self, async_client: AsyncCasParser) -> None: log = await response.parse() assert_matches_type(LogCreateResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_create(self, async_client: AsyncCasParser) -> None: async with async_client.logs.with_streaming_response.create() as response: @@ -137,13 +137,13 @@ async def test_streaming_response_create(self, async_client: AsyncCasParser) -> assert cast(Any, response.is_closed) is True - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_summary(self, async_client: AsyncCasParser) -> None: log = await async_client.logs.get_summary() assert_matches_type(LogGetSummaryResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_get_summary_with_all_params(self, async_client: AsyncCasParser) -> None: log = await async_client.logs.get_summary( @@ -152,7 +152,7 @@ async def test_method_get_summary_with_all_params(self, async_client: AsyncCasPa ) assert_matches_type(LogGetSummaryResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_get_summary(self, async_client: AsyncCasParser) -> None: response = await async_client.logs.with_raw_response.get_summary() @@ -162,7 +162,7 @@ async def test_raw_response_get_summary(self, async_client: AsyncCasParser) -> N log = await response.parse() assert_matches_type(LogGetSummaryResponse, log, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_get_summary(self, async_client: AsyncCasParser) -> None: async with async_client.logs.with_streaming_response.get_summary() as response: diff --git a/tests/api_resources/test_nsdl.py b/tests/api_resources/test_nsdl.py index 6e30980..7a599fb 100644 --- a/tests/api_resources/test_nsdl.py +++ b/tests/api_resources/test_nsdl.py @@ -17,13 +17,13 @@ class TestNsdl: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse(self, client: CasParser) -> None: nsdl = client.nsdl.parse() assert_matches_type(UnifiedResponse, nsdl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_with_all_params(self, client: CasParser) -> None: nsdl = client.nsdl.parse( @@ -33,7 +33,7 @@ def test_method_parse_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(UnifiedResponse, nsdl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_parse(self, client: CasParser) -> None: response = client.nsdl.with_raw_response.parse() @@ -43,7 +43,7 @@ def test_raw_response_parse(self, client: CasParser) -> None: nsdl = response.parse() assert_matches_type(UnifiedResponse, nsdl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_parse(self, client: CasParser) -> None: with client.nsdl.with_streaming_response.parse() as response: @@ -61,13 +61,13 @@ class TestAsyncNsdl: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse(self, async_client: AsyncCasParser) -> None: nsdl = await async_client.nsdl.parse() assert_matches_type(UnifiedResponse, nsdl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_with_all_params(self, async_client: AsyncCasParser) -> None: nsdl = await async_client.nsdl.parse( @@ -77,7 +77,7 @@ async def test_method_parse_with_all_params(self, async_client: AsyncCasParser) ) assert_matches_type(UnifiedResponse, nsdl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_parse(self, async_client: AsyncCasParser) -> None: response = await async_client.nsdl.with_raw_response.parse() @@ -87,7 +87,7 @@ async def test_raw_response_parse(self, async_client: AsyncCasParser) -> None: nsdl = await response.parse() assert_matches_type(UnifiedResponse, nsdl, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_parse(self, async_client: AsyncCasParser) -> None: async with async_client.nsdl.with_streaming_response.parse() as response: diff --git a/tests/api_resources/test_smart.py b/tests/api_resources/test_smart.py index 152457b..074c248 100644 --- a/tests/api_resources/test_smart.py +++ b/tests/api_resources/test_smart.py @@ -17,13 +17,13 @@ class TestSmart: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_cas_pdf(self, client: CasParser) -> None: smart = client.smart.parse_cas_pdf() assert_matches_type(UnifiedResponse, smart, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_parse_cas_pdf_with_all_params(self, client: CasParser) -> None: smart = client.smart.parse_cas_pdf( @@ -33,7 +33,7 @@ def test_method_parse_cas_pdf_with_all_params(self, client: CasParser) -> None: ) assert_matches_type(UnifiedResponse, smart, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_parse_cas_pdf(self, client: CasParser) -> None: response = client.smart.with_raw_response.parse_cas_pdf() @@ -43,7 +43,7 @@ def test_raw_response_parse_cas_pdf(self, client: CasParser) -> None: smart = response.parse() assert_matches_type(UnifiedResponse, smart, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_parse_cas_pdf(self, client: CasParser) -> None: with client.smart.with_streaming_response.parse_cas_pdf() as response: @@ -61,13 +61,13 @@ class TestAsyncSmart: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_cas_pdf(self, async_client: AsyncCasParser) -> None: smart = await async_client.smart.parse_cas_pdf() assert_matches_type(UnifiedResponse, smart, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_parse_cas_pdf_with_all_params(self, async_client: AsyncCasParser) -> None: smart = await async_client.smart.parse_cas_pdf( @@ -77,7 +77,7 @@ async def test_method_parse_cas_pdf_with_all_params(self, async_client: AsyncCas ) assert_matches_type(UnifiedResponse, smart, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_parse_cas_pdf(self, async_client: AsyncCasParser) -> None: response = await async_client.smart.with_raw_response.parse_cas_pdf() @@ -87,7 +87,7 @@ async def test_raw_response_parse_cas_pdf(self, async_client: AsyncCasParser) -> smart = await response.parse() assert_matches_type(UnifiedResponse, smart, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_parse_cas_pdf(self, async_client: AsyncCasParser) -> None: async with async_client.smart.with_streaming_response.parse_cas_pdf() as response: diff --git a/tests/api_resources/test_verify_token.py b/tests/api_resources/test_verify_token.py index 2ff8a90..43e594d 100644 --- a/tests/api_resources/test_verify_token.py +++ b/tests/api_resources/test_verify_token.py @@ -17,13 +17,13 @@ class TestVerifyToken: parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_method_verify(self, client: CasParser) -> None: verify_token = client.verify_token.verify() assert_matches_type(VerifyTokenVerifyResponse, verify_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_raw_response_verify(self, client: CasParser) -> None: response = client.verify_token.with_raw_response.verify() @@ -33,7 +33,7 @@ def test_raw_response_verify(self, client: CasParser) -> None: verify_token = response.parse() assert_matches_type(VerifyTokenVerifyResponse, verify_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize def test_streaming_response_verify(self, client: CasParser) -> None: with client.verify_token.with_streaming_response.verify() as response: @@ -51,13 +51,13 @@ class TestAsyncVerifyToken: "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"] ) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_method_verify(self, async_client: AsyncCasParser) -> None: verify_token = await async_client.verify_token.verify() assert_matches_type(VerifyTokenVerifyResponse, verify_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_raw_response_verify(self, async_client: AsyncCasParser) -> None: response = await async_client.verify_token.with_raw_response.verify() @@ -67,7 +67,7 @@ async def test_raw_response_verify(self, async_client: AsyncCasParser) -> None: verify_token = await response.parse() assert_matches_type(VerifyTokenVerifyResponse, verify_token, path=["response"]) - @pytest.mark.skip(reason="Prism tests are disabled") + @pytest.mark.skip(reason="Mock server tests are disabled") @parametrize async def test_streaming_response_verify(self, async_client: AsyncCasParser) -> None: async with async_client.verify_token.with_streaming_response.verify() as response: