Skip to content

Commit 5bcfbdf

Browse files
chore: update mock server docs
1 parent 7a322f7 commit 5bcfbdf

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

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/code_interpreter/test_sessions.py

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

20-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
20+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
2121
@parametrize
2222
def test_method_list(self, client: Together) -> None:
2323
session = client.code_interpreter.sessions.list()
2424
assert_matches_type(SessionListResponse, session, path=["response"])
2525

26-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
26+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
2727
@parametrize
2828
def test_raw_response_list(self, client: Together) -> None:
2929
response = client.code_interpreter.sessions.with_raw_response.list()
@@ -33,7 +33,7 @@ def test_raw_response_list(self, client: Together) -> None:
3333
session = response.parse()
3434
assert_matches_type(SessionListResponse, session, path=["response"])
3535

36-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
36+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
3737
@parametrize
3838
def test_streaming_response_list(self, client: Together) -> None:
3939
with client.code_interpreter.sessions.with_streaming_response.list() as response:
@@ -51,13 +51,13 @@ class TestAsyncSessions:
5151
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
5252
)
5353

54-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
54+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
5555
@parametrize
5656
async def test_method_list(self, async_client: AsyncTogether) -> None:
5757
session = await async_client.code_interpreter.sessions.list()
5858
assert_matches_type(SessionListResponse, session, path=["response"])
5959

60-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
60+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
6161
@parametrize
6262
async def test_raw_response_list(self, async_client: AsyncTogether) -> None:
6363
response = await async_client.code_interpreter.sessions.with_raw_response.list()
@@ -67,7 +67,7 @@ async def test_raw_response_list(self, async_client: AsyncTogether) -> None:
6767
session = await response.parse()
6868
assert_matches_type(SessionListResponse, session, path=["response"])
6969

70-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
70+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
7171
@parametrize
7272
async def test_streaming_response_list(self, async_client: AsyncTogether) -> None:
7373
async with async_client.code_interpreter.sessions.with_streaming_response.list() as response:

tests/api_resources/test_code_interpreter.py

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

20-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
20+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
2121
@parametrize
2222
def test_method_execute(self, client: Together) -> None:
2323
code_interpreter = client.code_interpreter.execute(
@@ -26,7 +26,7 @@ def test_method_execute(self, client: Together) -> None:
2626
)
2727
assert_matches_type(ExecuteResponse, code_interpreter, path=["response"])
2828

29-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
29+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
3030
@parametrize
3131
def test_method_execute_with_all_params(self, client: Together) -> None:
3232
code_interpreter = client.code_interpreter.execute(
@@ -43,7 +43,7 @@ def test_method_execute_with_all_params(self, client: Together) -> None:
4343
)
4444
assert_matches_type(ExecuteResponse, code_interpreter, path=["response"])
4545

46-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
46+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
4747
@parametrize
4848
def test_raw_response_execute(self, client: Together) -> None:
4949
response = client.code_interpreter.with_raw_response.execute(
@@ -56,7 +56,7 @@ def test_raw_response_execute(self, client: Together) -> None:
5656
code_interpreter = response.parse()
5757
assert_matches_type(ExecuteResponse, code_interpreter, path=["response"])
5858

59-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
59+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
6060
@parametrize
6161
def test_streaming_response_execute(self, client: Together) -> None:
6262
with client.code_interpreter.with_streaming_response.execute(
@@ -77,7 +77,7 @@ class TestAsyncCodeInterpreter:
7777
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
7878
)
7979

80-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
80+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
8181
@parametrize
8282
async def test_method_execute(self, async_client: AsyncTogether) -> None:
8383
code_interpreter = await async_client.code_interpreter.execute(
@@ -86,7 +86,7 @@ async def test_method_execute(self, async_client: AsyncTogether) -> None:
8686
)
8787
assert_matches_type(ExecuteResponse, code_interpreter, path=["response"])
8888

89-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
89+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
9090
@parametrize
9191
async def test_method_execute_with_all_params(self, async_client: AsyncTogether) -> None:
9292
code_interpreter = await async_client.code_interpreter.execute(
@@ -103,7 +103,7 @@ async def test_method_execute_with_all_params(self, async_client: AsyncTogether)
103103
)
104104
assert_matches_type(ExecuteResponse, code_interpreter, path=["response"])
105105

106-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
106+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
107107
@parametrize
108108
async def test_raw_response_execute(self, async_client: AsyncTogether) -> None:
109109
response = await async_client.code_interpreter.with_raw_response.execute(
@@ -116,7 +116,7 @@ async def test_raw_response_execute(self, async_client: AsyncTogether) -> None:
116116
code_interpreter = await response.parse()
117117
assert_matches_type(ExecuteResponse, code_interpreter, path=["response"])
118118

119-
@pytest.mark.skip(reason="Prism doesn't support callbacks yet")
119+
@pytest.mark.skip(reason="Mock server doesn't support callbacks yet")
120120
@parametrize
121121
async def test_streaming_response_execute(self, async_client: AsyncTogether) -> None:
122122
async with async_client.code_interpreter.with_streaming_response.execute(

0 commit comments

Comments
 (0)