Skip to content

Commit 70c5e58

Browse files
Merge pull request #12 from CASParser/release-please--branches--main--changes--next
release: 1.4.1
2 parents 06ff38f + ad39bb0 commit 70c5e58

20 files changed

Lines changed: 141 additions & 226 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.4.0"
2+
".": "1.4.1"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 17
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-56b0f699c5437d9e5326626d35dfc972c17d01f12cb416c7f4854c8ea6d0e95e.yml
33
openapi_spec_hash: 158f405c1880706266d83e6ff16b9d2f
4-
config_hash: ab495a165f0919b37cbf9efbd0f0e6ef
4+
config_hash: 41c337f5cda03b13880617490f82bad0

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 1.4.1 (2026-02-20)
4+
5+
Full Changelog: [v1.4.0...v1.4.1](https://github.com/CASParser/cas-parser-python/compare/v1.4.0...v1.4.1)
6+
7+
### Chores
8+
9+
* **internal:** remove mock server code ([582f64d](https://github.com/CASParser/cas-parser-python/commit/582f64db76f09909f2c406877633b3db56b492dc))
10+
* update mock server docs ([d2942ae](https://github.com/CASParser/cas-parser-python/commit/d2942aef06e12bb1e57040358b68555f7e28bf15))
11+
312
## 1.4.0 (2026-02-14)
413

514
Full Changelog: [v1.3.2...v1.4.0](https://github.com/CASParser/cas-parser-python/compare/v1.3.2...v1.4.0)

CONTRIBUTING.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl
8585

8686
## Running tests
8787

88-
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
89-
90-
```sh
91-
# you will need npm installed
92-
$ npx prism mock path/to/your/openapi.yml
93-
```
94-
9588
```sh
9689
$ ./scripts/test
9790
```

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cas-parser-python"
3-
version = "1.4.0"
3+
version = "1.4.1"
44
description = "The official Python library for the cas-parser API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

scripts/mock

Lines changed: 0 additions & 41 deletions
This file was deleted.

scripts/test

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,53 +4,7 @@ set -e
44

55
cd "$(dirname "$0")/.."
66

7-
RED='\033[0;31m'
8-
GREEN='\033[0;32m'
9-
YELLOW='\033[0;33m'
10-
NC='\033[0m' # No Color
117

12-
function prism_is_running() {
13-
curl --silent "http://localhost:4010" >/dev/null 2>&1
14-
}
15-
16-
kill_server_on_port() {
17-
pids=$(lsof -t -i tcp:"$1" || echo "")
18-
if [ "$pids" != "" ]; then
19-
kill "$pids"
20-
echo "Stopped $pids."
21-
fi
22-
}
23-
24-
function is_overriding_api_base_url() {
25-
[ -n "$TEST_API_BASE_URL" ]
26-
}
27-
28-
if ! is_overriding_api_base_url && ! prism_is_running ; then
29-
# When we exit this script, make sure to kill the background mock server process
30-
trap 'kill_server_on_port 4010' EXIT
31-
32-
# Start the dev server
33-
./scripts/mock --daemon
34-
fi
35-
36-
if is_overriding_api_base_url ; then
37-
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
38-
echo
39-
elif ! prism_is_running ; then
40-
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
41-
echo -e "running against your OpenAPI spec."
42-
echo
43-
echo -e "To run the server, pass in the path or url of your OpenAPI"
44-
echo -e "spec to the prism command:"
45-
echo
46-
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
47-
echo
48-
49-
exit 1
50-
else
51-
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
52-
echo
53-
fi
548

559
export DEFER_PYDANTIC_BUILD=false
5610

src/cas_parser/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "cas_parser"
4-
__version__ = "1.4.0" # x-release-please-version
4+
__version__ = "1.4.1" # x-release-please-version

tests/api_resources/cdsl/test_fetch.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class TestFetch:
2121
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2222

23-
@pytest.mark.skip(reason="Prism tests are disabled")
23+
@pytest.mark.skip(reason="Mock server tests are disabled")
2424
@parametrize
2525
def test_method_request_otp(self, client: CasParser) -> None:
2626
fetch = client.cdsl.fetch.request_otp(
@@ -30,7 +30,7 @@ def test_method_request_otp(self, client: CasParser) -> None:
3030
)
3131
assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"])
3232

33-
@pytest.mark.skip(reason="Prism tests are disabled")
33+
@pytest.mark.skip(reason="Mock server tests are disabled")
3434
@parametrize
3535
def test_raw_response_request_otp(self, client: CasParser) -> None:
3636
response = client.cdsl.fetch.with_raw_response.request_otp(
@@ -44,7 +44,7 @@ def test_raw_response_request_otp(self, client: CasParser) -> None:
4444
fetch = response.parse()
4545
assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"])
4646

47-
@pytest.mark.skip(reason="Prism tests are disabled")
47+
@pytest.mark.skip(reason="Mock server tests are disabled")
4848
@parametrize
4949
def test_streaming_response_request_otp(self, client: CasParser) -> None:
5050
with client.cdsl.fetch.with_streaming_response.request_otp(
@@ -60,7 +60,7 @@ def test_streaming_response_request_otp(self, client: CasParser) -> None:
6060

6161
assert cast(Any, response.is_closed) is True
6262

63-
@pytest.mark.skip(reason="Prism tests are disabled")
63+
@pytest.mark.skip(reason="Mock server tests are disabled")
6464
@parametrize
6565
def test_method_verify_otp(self, client: CasParser) -> None:
6666
fetch = client.cdsl.fetch.verify_otp(
@@ -69,7 +69,7 @@ def test_method_verify_otp(self, client: CasParser) -> None:
6969
)
7070
assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"])
7171

72-
@pytest.mark.skip(reason="Prism tests are disabled")
72+
@pytest.mark.skip(reason="Mock server tests are disabled")
7373
@parametrize
7474
def test_method_verify_otp_with_all_params(self, client: CasParser) -> None:
7575
fetch = client.cdsl.fetch.verify_otp(
@@ -79,7 +79,7 @@ def test_method_verify_otp_with_all_params(self, client: CasParser) -> None:
7979
)
8080
assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"])
8181

82-
@pytest.mark.skip(reason="Prism tests are disabled")
82+
@pytest.mark.skip(reason="Mock server tests are disabled")
8383
@parametrize
8484
def test_raw_response_verify_otp(self, client: CasParser) -> None:
8585
response = client.cdsl.fetch.with_raw_response.verify_otp(
@@ -92,7 +92,7 @@ def test_raw_response_verify_otp(self, client: CasParser) -> None:
9292
fetch = response.parse()
9393
assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"])
9494

95-
@pytest.mark.skip(reason="Prism tests are disabled")
95+
@pytest.mark.skip(reason="Mock server tests are disabled")
9696
@parametrize
9797
def test_streaming_response_verify_otp(self, client: CasParser) -> None:
9898
with client.cdsl.fetch.with_streaming_response.verify_otp(
@@ -107,7 +107,7 @@ def test_streaming_response_verify_otp(self, client: CasParser) -> None:
107107

108108
assert cast(Any, response.is_closed) is True
109109

110-
@pytest.mark.skip(reason="Prism tests are disabled")
110+
@pytest.mark.skip(reason="Mock server tests are disabled")
111111
@parametrize
112112
def test_path_params_verify_otp(self, client: CasParser) -> None:
113113
with pytest.raises(ValueError, match=r"Expected a non-empty value for `session_id` but received ''"):
@@ -122,7 +122,7 @@ class TestAsyncFetch:
122122
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
123123
)
124124

125-
@pytest.mark.skip(reason="Prism tests are disabled")
125+
@pytest.mark.skip(reason="Mock server tests are disabled")
126126
@parametrize
127127
async def test_method_request_otp(self, async_client: AsyncCasParser) -> None:
128128
fetch = await async_client.cdsl.fetch.request_otp(
@@ -132,7 +132,7 @@ async def test_method_request_otp(self, async_client: AsyncCasParser) -> None:
132132
)
133133
assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"])
134134

135-
@pytest.mark.skip(reason="Prism tests are disabled")
135+
@pytest.mark.skip(reason="Mock server tests are disabled")
136136
@parametrize
137137
async def test_raw_response_request_otp(self, async_client: AsyncCasParser) -> None:
138138
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
146146
fetch = await response.parse()
147147
assert_matches_type(FetchRequestOtpResponse, fetch, path=["response"])
148148

149-
@pytest.mark.skip(reason="Prism tests are disabled")
149+
@pytest.mark.skip(reason="Mock server tests are disabled")
150150
@parametrize
151151
async def test_streaming_response_request_otp(self, async_client: AsyncCasParser) -> None:
152152
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
162162

163163
assert cast(Any, response.is_closed) is True
164164

165-
@pytest.mark.skip(reason="Prism tests are disabled")
165+
@pytest.mark.skip(reason="Mock server tests are disabled")
166166
@parametrize
167167
async def test_method_verify_otp(self, async_client: AsyncCasParser) -> None:
168168
fetch = await async_client.cdsl.fetch.verify_otp(
@@ -171,7 +171,7 @@ async def test_method_verify_otp(self, async_client: AsyncCasParser) -> None:
171171
)
172172
assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"])
173173

174-
@pytest.mark.skip(reason="Prism tests are disabled")
174+
@pytest.mark.skip(reason="Mock server tests are disabled")
175175
@parametrize
176176
async def test_method_verify_otp_with_all_params(self, async_client: AsyncCasParser) -> None:
177177
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
181181
)
182182
assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"])
183183

184-
@pytest.mark.skip(reason="Prism tests are disabled")
184+
@pytest.mark.skip(reason="Mock server tests are disabled")
185185
@parametrize
186186
async def test_raw_response_verify_otp(self, async_client: AsyncCasParser) -> None:
187187
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
194194
fetch = await response.parse()
195195
assert_matches_type(FetchVerifyOtpResponse, fetch, path=["response"])
196196

197-
@pytest.mark.skip(reason="Prism tests are disabled")
197+
@pytest.mark.skip(reason="Mock server tests are disabled")
198198
@parametrize
199199
async def test_streaming_response_verify_otp(self, async_client: AsyncCasParser) -> None:
200200
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)
209209

210210
assert cast(Any, response.is_closed) is True
211211

212-
@pytest.mark.skip(reason="Prism tests are disabled")
212+
@pytest.mark.skip(reason="Mock server tests are disabled")
213213
@parametrize
214214
async def test_path_params_verify_otp(self, async_client: AsyncCasParser) -> None:
215215
with pytest.raises(ValueError, match=r"Expected a non-empty value for `session_id` but received ''"):

tests/api_resources/test_access_token.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@
1717
class TestAccessToken:
1818
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
1919

20-
@pytest.mark.skip(reason="Prism tests are disabled")
20+
@pytest.mark.skip(reason="Mock server tests are disabled")
2121
@parametrize
2222
def test_method_create(self, client: CasParser) -> None:
2323
access_token = client.access_token.create()
2424
assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"])
2525

26-
@pytest.mark.skip(reason="Prism tests are disabled")
26+
@pytest.mark.skip(reason="Mock server tests are disabled")
2727
@parametrize
2828
def test_method_create_with_all_params(self, client: CasParser) -> None:
2929
access_token = client.access_token.create(
3030
expiry_minutes=60,
3131
)
3232
assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"])
3333

34-
@pytest.mark.skip(reason="Prism tests are disabled")
34+
@pytest.mark.skip(reason="Mock server tests are disabled")
3535
@parametrize
3636
def test_raw_response_create(self, client: CasParser) -> None:
3737
response = client.access_token.with_raw_response.create()
@@ -41,7 +41,7 @@ def test_raw_response_create(self, client: CasParser) -> None:
4141
access_token = response.parse()
4242
assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"])
4343

44-
@pytest.mark.skip(reason="Prism tests are disabled")
44+
@pytest.mark.skip(reason="Mock server tests are disabled")
4545
@parametrize
4646
def test_streaming_response_create(self, client: CasParser) -> None:
4747
with client.access_token.with_streaming_response.create() as response:
@@ -59,21 +59,21 @@ class TestAsyncAccessToken:
5959
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
6060
)
6161

62-
@pytest.mark.skip(reason="Prism tests are disabled")
62+
@pytest.mark.skip(reason="Mock server tests are disabled")
6363
@parametrize
6464
async def test_method_create(self, async_client: AsyncCasParser) -> None:
6565
access_token = await async_client.access_token.create()
6666
assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"])
6767

68-
@pytest.mark.skip(reason="Prism tests are disabled")
68+
@pytest.mark.skip(reason="Mock server tests are disabled")
6969
@parametrize
7070
async def test_method_create_with_all_params(self, async_client: AsyncCasParser) -> None:
7171
access_token = await async_client.access_token.create(
7272
expiry_minutes=60,
7373
)
7474
assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"])
7575

76-
@pytest.mark.skip(reason="Prism tests are disabled")
76+
@pytest.mark.skip(reason="Mock server tests are disabled")
7777
@parametrize
7878
async def test_raw_response_create(self, async_client: AsyncCasParser) -> None:
7979
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:
8383
access_token = await response.parse()
8484
assert_matches_type(AccessTokenCreateResponse, access_token, path=["response"])
8585

86-
@pytest.mark.skip(reason="Prism tests are disabled")
86+
@pytest.mark.skip(reason="Mock server tests are disabled")
8787
@parametrize
8888
async def test_streaming_response_create(self, async_client: AsyncCasParser) -> None:
8989
async with async_client.access_token.with_streaming_response.create() as response:

0 commit comments

Comments
 (0)