Skip to content

Commit f118108

Browse files
chore: update mock server docs
1 parent c6499b9 commit f118108

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ $ pip install ./path-to-wheel-file.whl
8888
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
8989

9090
```sh
91-
# you will need npm installed
92-
$ npx prism mock path/to/your/openapi.yml
91+
$ ./scripts/mock
9392
```
9493

9594
```sh

tests/api_resources/beta/messages/test_batches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def test_method_results(self, client: Anthropic, respx_mock: MockRouter) -> None
442442
assert i == 1
443443
assert results.http_response.is_stream_consumed
444444

445-
@pytest.mark.skip(reason="Prism doesn't support application/x-jsonl responses")
445+
@pytest.mark.skip(reason="Mock server doesn't support application/x-jsonl responses")
446446
@parametrize
447447
def test_path_params_results(self, client: Anthropic) -> None:
448448
with pytest.raises(ValueError, match=r"Expected a non-empty value for `message_batch_id` but received ''"):
@@ -875,7 +875,7 @@ async def test_method_results(self, async_client: AsyncAnthropic, respx_mock: Mo
875875
assert i == 1
876876
assert results.http_response.is_stream_consumed
877877

878-
@pytest.mark.skip(reason="Prism doesn't support application/x-jsonl responses")
878+
@pytest.mark.skip(reason="Mock server doesn't support application/x-jsonl responses")
879879
@parametrize
880880
async def test_path_params_results(self, async_client: AsyncAnthropic) -> None:
881881
with pytest.raises(ValueError, match=r"Expected a non-empty value for `message_batch_id` but received ''"):

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)