Skip to content

Commit 4bd2467

Browse files
chore: update mock server docs
1 parent e586a7f commit 4bd2467

File tree

6 files changed

+40
-47
lines changed

6 files changed

+40
-47
lines changed

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
```

tests/api_resources/classifications/test_universal.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestUniversal:
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: Isaacus) -> None:
2323
universal = client.classifications.universal.create(
@@ -27,7 +27,7 @@ def test_method_create(self, client: Isaacus) -> None:
2727
)
2828
assert_matches_type(UniversalClassificationResponse, universal, path=["response"])
2929

30-
@pytest.mark.skip(reason="Prism tests are disabled")
30+
@pytest.mark.skip(reason="Mock server tests are disabled")
3131
@parametrize
3232
def test_method_create_with_all_params(self, client: Isaacus) -> None:
3333
universal = client.classifications.universal.create(
@@ -44,7 +44,7 @@ def test_method_create_with_all_params(self, client: Isaacus) -> None:
4444
)
4545
assert_matches_type(UniversalClassificationResponse, universal, 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_raw_response_create(self, client: Isaacus) -> None:
5050
response = client.classifications.universal.with_raw_response.create(
@@ -58,7 +58,7 @@ def test_raw_response_create(self, client: Isaacus) -> None:
5858
universal = response.parse()
5959
assert_matches_type(UniversalClassificationResponse, universal, path=["response"])
6060

61-
@pytest.mark.skip(reason="Prism tests are disabled")
61+
@pytest.mark.skip(reason="Mock server tests are disabled")
6262
@parametrize
6363
def test_streaming_response_create(self, client: Isaacus) -> None:
6464
with client.classifications.universal.with_streaming_response.create(
@@ -80,7 +80,7 @@ class TestAsyncUniversal:
8080
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
8181
)
8282

83-
@pytest.mark.skip(reason="Prism tests are disabled")
83+
@pytest.mark.skip(reason="Mock server tests are disabled")
8484
@parametrize
8585
async def test_method_create(self, async_client: AsyncIsaacus) -> None:
8686
universal = await async_client.classifications.universal.create(
@@ -90,7 +90,7 @@ async def test_method_create(self, async_client: AsyncIsaacus) -> None:
9090
)
9191
assert_matches_type(UniversalClassificationResponse, universal, path=["response"])
9292

93-
@pytest.mark.skip(reason="Prism tests are disabled")
93+
@pytest.mark.skip(reason="Mock server tests are disabled")
9494
@parametrize
9595
async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -> None:
9696
universal = await async_client.classifications.universal.create(
@@ -107,7 +107,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -
107107
)
108108
assert_matches_type(UniversalClassificationResponse, universal, path=["response"])
109109

110-
@pytest.mark.skip(reason="Prism tests are disabled")
110+
@pytest.mark.skip(reason="Mock server tests are disabled")
111111
@parametrize
112112
async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
113113
response = await async_client.classifications.universal.with_raw_response.create(
@@ -121,7 +121,7 @@ async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
121121
universal = await response.parse()
122122
assert_matches_type(UniversalClassificationResponse, universal, path=["response"])
123123

124-
@pytest.mark.skip(reason="Prism tests are disabled")
124+
@pytest.mark.skip(reason="Mock server tests are disabled")
125125
@parametrize
126126
async def test_streaming_response_create(self, async_client: AsyncIsaacus) -> None:
127127
async with async_client.classifications.universal.with_streaming_response.create(

tests/api_resources/extractions/test_qa.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestQA:
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: Isaacus) -> None:
2323
qa = client.extractions.qa.create(
@@ -29,7 +29,7 @@ def test_method_create(self, client: Isaacus) -> None:
2929
)
3030
assert_matches_type(AnswerExtractionResponse, qa, path=["response"])
3131

32-
@pytest.mark.skip(reason="Prism tests are disabled")
32+
@pytest.mark.skip(reason="Mock server tests are disabled")
3333
@parametrize
3434
def test_method_create_with_all_params(self, client: Isaacus) -> None:
3535
qa = client.extractions.qa.create(
@@ -48,7 +48,7 @@ def test_method_create_with_all_params(self, client: Isaacus) -> None:
4848
)
4949
assert_matches_type(AnswerExtractionResponse, qa, path=["response"])
5050

51-
@pytest.mark.skip(reason="Prism tests are disabled")
51+
@pytest.mark.skip(reason="Mock server tests are disabled")
5252
@parametrize
5353
def test_raw_response_create(self, client: Isaacus) -> None:
5454
response = client.extractions.qa.with_raw_response.create(
@@ -64,7 +64,7 @@ def test_raw_response_create(self, client: Isaacus) -> None:
6464
qa = response.parse()
6565
assert_matches_type(AnswerExtractionResponse, qa, path=["response"])
6666

67-
@pytest.mark.skip(reason="Prism tests are disabled")
67+
@pytest.mark.skip(reason="Mock server tests are disabled")
6868
@parametrize
6969
def test_streaming_response_create(self, client: Isaacus) -> None:
7070
with client.extractions.qa.with_streaming_response.create(
@@ -88,7 +88,7 @@ class TestAsyncQA:
8888
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
8989
)
9090

91-
@pytest.mark.skip(reason="Prism tests are disabled")
91+
@pytest.mark.skip(reason="Mock server tests are disabled")
9292
@parametrize
9393
async def test_method_create(self, async_client: AsyncIsaacus) -> None:
9494
qa = await async_client.extractions.qa.create(
@@ -100,7 +100,7 @@ async def test_method_create(self, async_client: AsyncIsaacus) -> None:
100100
)
101101
assert_matches_type(AnswerExtractionResponse, qa, path=["response"])
102102

103-
@pytest.mark.skip(reason="Prism tests are disabled")
103+
@pytest.mark.skip(reason="Mock server tests are disabled")
104104
@parametrize
105105
async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -> None:
106106
qa = await async_client.extractions.qa.create(
@@ -119,7 +119,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -
119119
)
120120
assert_matches_type(AnswerExtractionResponse, qa, path=["response"])
121121

122-
@pytest.mark.skip(reason="Prism tests are disabled")
122+
@pytest.mark.skip(reason="Mock server tests are disabled")
123123
@parametrize
124124
async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
125125
response = await async_client.extractions.qa.with_raw_response.create(
@@ -135,7 +135,7 @@ async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
135135
qa = await response.parse()
136136
assert_matches_type(AnswerExtractionResponse, qa, path=["response"])
137137

138-
@pytest.mark.skip(reason="Prism tests are disabled")
138+
@pytest.mark.skip(reason="Mock server tests are disabled")
139139
@parametrize
140140
async def test_streaming_response_create(self, async_client: AsyncIsaacus) -> None:
141141
async with async_client.extractions.qa.with_streaming_response.create(

tests/api_resources/test_embeddings.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestEmbeddings:
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: Isaacus) -> None:
2323
embedding = client.embeddings.create(
@@ -26,7 +26,7 @@ def test_method_create(self, client: Isaacus) -> None:
2626
)
2727
assert_matches_type(EmbeddingResponse, embedding, path=["response"])
2828

29-
@pytest.mark.skip(reason="Prism tests are disabled")
29+
@pytest.mark.skip(reason="Mock server tests are disabled")
3030
@parametrize
3131
def test_method_create_with_all_params(self, client: Isaacus) -> None:
3232
embedding = client.embeddings.create(
@@ -38,7 +38,7 @@ def test_method_create_with_all_params(self, client: Isaacus) -> None:
3838
)
3939
assert_matches_type(EmbeddingResponse, embedding, path=["response"])
4040

41-
@pytest.mark.skip(reason="Prism tests are disabled")
41+
@pytest.mark.skip(reason="Mock server tests are disabled")
4242
@parametrize
4343
def test_raw_response_create(self, client: Isaacus) -> None:
4444
response = client.embeddings.with_raw_response.create(
@@ -51,7 +51,7 @@ def test_raw_response_create(self, client: Isaacus) -> None:
5151
embedding = response.parse()
5252
assert_matches_type(EmbeddingResponse, embedding, path=["response"])
5353

54-
@pytest.mark.skip(reason="Prism tests are disabled")
54+
@pytest.mark.skip(reason="Mock server tests are disabled")
5555
@parametrize
5656
def test_streaming_response_create(self, client: Isaacus) -> None:
5757
with client.embeddings.with_streaming_response.create(
@@ -72,7 +72,7 @@ class TestAsyncEmbeddings:
7272
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
7373
)
7474

75-
@pytest.mark.skip(reason="Prism tests are disabled")
75+
@pytest.mark.skip(reason="Mock server tests are disabled")
7676
@parametrize
7777
async def test_method_create(self, async_client: AsyncIsaacus) -> None:
7878
embedding = await async_client.embeddings.create(
@@ -81,7 +81,7 @@ async def test_method_create(self, async_client: AsyncIsaacus) -> None:
8181
)
8282
assert_matches_type(EmbeddingResponse, embedding, path=["response"])
8383

84-
@pytest.mark.skip(reason="Prism tests are disabled")
84+
@pytest.mark.skip(reason="Mock server tests are disabled")
8585
@parametrize
8686
async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -> None:
8787
embedding = await async_client.embeddings.create(
@@ -93,7 +93,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -
9393
)
9494
assert_matches_type(EmbeddingResponse, embedding, path=["response"])
9595

96-
@pytest.mark.skip(reason="Prism tests are disabled")
96+
@pytest.mark.skip(reason="Mock server tests are disabled")
9797
@parametrize
9898
async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
9999
response = await async_client.embeddings.with_raw_response.create(
@@ -106,7 +106,7 @@ async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
106106
embedding = await response.parse()
107107
assert_matches_type(EmbeddingResponse, embedding, path=["response"])
108108

109-
@pytest.mark.skip(reason="Prism tests are disabled")
109+
@pytest.mark.skip(reason="Mock server tests are disabled")
110110
@parametrize
111111
async def test_streaming_response_create(self, async_client: AsyncIsaacus) -> None:
112112
async with async_client.embeddings.with_streaming_response.create(

tests/api_resources/test_enrichments.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestEnrichments:
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: Isaacus) -> None:
2323
enrichment = client.enrichments.create(
@@ -26,7 +26,7 @@ def test_method_create(self, client: Isaacus) -> None:
2626
)
2727
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
2828

29-
@pytest.mark.skip(reason="Prism tests are disabled")
29+
@pytest.mark.skip(reason="Mock server tests are disabled")
3030
@parametrize
3131
def test_method_create_with_all_params(self, client: Isaacus) -> None:
3232
enrichment = client.enrichments.create(
@@ -36,7 +36,7 @@ def test_method_create_with_all_params(self, client: Isaacus) -> None:
3636
)
3737
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
3838

39-
@pytest.mark.skip(reason="Prism tests are disabled")
39+
@pytest.mark.skip(reason="Mock server tests are disabled")
4040
@parametrize
4141
def test_raw_response_create(self, client: Isaacus) -> None:
4242
response = client.enrichments.with_raw_response.create(
@@ -49,7 +49,7 @@ def test_raw_response_create(self, client: Isaacus) -> None:
4949
enrichment = response.parse()
5050
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
5151

52-
@pytest.mark.skip(reason="Prism tests are disabled")
52+
@pytest.mark.skip(reason="Mock server tests are disabled")
5353
@parametrize
5454
def test_streaming_response_create(self, client: Isaacus) -> None:
5555
with client.enrichments.with_streaming_response.create(
@@ -70,7 +70,7 @@ class TestAsyncEnrichments:
7070
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
7171
)
7272

73-
@pytest.mark.skip(reason="Prism tests are disabled")
73+
@pytest.mark.skip(reason="Mock server tests are disabled")
7474
@parametrize
7575
async def test_method_create(self, async_client: AsyncIsaacus) -> None:
7676
enrichment = await async_client.enrichments.create(
@@ -79,7 +79,7 @@ async def test_method_create(self, async_client: AsyncIsaacus) -> None:
7979
)
8080
assert_matches_type(EnrichmentResponse, enrichment, 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
async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -> None:
8585
enrichment = await async_client.enrichments.create(
@@ -89,7 +89,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -
8989
)
9090
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
9191

92-
@pytest.mark.skip(reason="Prism tests are disabled")
92+
@pytest.mark.skip(reason="Mock server tests are disabled")
9393
@parametrize
9494
async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
9595
response = await async_client.enrichments.with_raw_response.create(
@@ -102,7 +102,7 @@ async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
102102
enrichment = await response.parse()
103103
assert_matches_type(EnrichmentResponse, enrichment, path=["response"])
104104

105-
@pytest.mark.skip(reason="Prism tests are disabled")
105+
@pytest.mark.skip(reason="Mock server tests are disabled")
106106
@parametrize
107107
async def test_streaming_response_create(self, async_client: AsyncIsaacus) -> None:
108108
async with async_client.enrichments.with_streaming_response.create(

tests/api_resources/test_rerankings.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class TestRerankings:
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: Isaacus) -> None:
2323
reranking = client.rerankings.create(
@@ -33,7 +33,7 @@ def test_method_create(self, client: Isaacus) -> None:
3333
)
3434
assert_matches_type(RerankingResponse, reranking, path=["response"])
3535

36-
@pytest.mark.skip(reason="Prism tests are disabled")
36+
@pytest.mark.skip(reason="Mock server tests are disabled")
3737
@parametrize
3838
def test_method_create_with_all_params(self, client: Isaacus) -> None:
3939
reranking = client.rerankings.create(
@@ -57,7 +57,7 @@ def test_method_create_with_all_params(self, client: Isaacus) -> None:
5757
)
5858
assert_matches_type(RerankingResponse, reranking, path=["response"])
5959

60-
@pytest.mark.skip(reason="Prism tests are disabled")
60+
@pytest.mark.skip(reason="Mock server tests are disabled")
6161
@parametrize
6262
def test_raw_response_create(self, client: Isaacus) -> None:
6363
response = client.rerankings.with_raw_response.create(
@@ -77,7 +77,7 @@ def test_raw_response_create(self, client: Isaacus) -> None:
7777
reranking = response.parse()
7878
assert_matches_type(RerankingResponse, reranking, path=["response"])
7979

80-
@pytest.mark.skip(reason="Prism tests are disabled")
80+
@pytest.mark.skip(reason="Mock server tests are disabled")
8181
@parametrize
8282
def test_streaming_response_create(self, client: Isaacus) -> None:
8383
with client.rerankings.with_streaming_response.create(
@@ -105,7 +105,7 @@ class TestAsyncRerankings:
105105
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
106106
)
107107

108-
@pytest.mark.skip(reason="Prism tests are disabled")
108+
@pytest.mark.skip(reason="Mock server tests are disabled")
109109
@parametrize
110110
async def test_method_create(self, async_client: AsyncIsaacus) -> None:
111111
reranking = await async_client.rerankings.create(
@@ -121,7 +121,7 @@ async def test_method_create(self, async_client: AsyncIsaacus) -> None:
121121
)
122122
assert_matches_type(RerankingResponse, reranking, path=["response"])
123123

124-
@pytest.mark.skip(reason="Prism tests are disabled")
124+
@pytest.mark.skip(reason="Mock server tests are disabled")
125125
@parametrize
126126
async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -> None:
127127
reranking = await async_client.rerankings.create(
@@ -145,7 +145,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncIsaacus) -
145145
)
146146
assert_matches_type(RerankingResponse, reranking, path=["response"])
147147

148-
@pytest.mark.skip(reason="Prism tests are disabled")
148+
@pytest.mark.skip(reason="Mock server tests are disabled")
149149
@parametrize
150150
async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
151151
response = await async_client.rerankings.with_raw_response.create(
@@ -165,7 +165,7 @@ async def test_raw_response_create(self, async_client: AsyncIsaacus) -> None:
165165
reranking = await response.parse()
166166
assert_matches_type(RerankingResponse, reranking, path=["response"])
167167

168-
@pytest.mark.skip(reason="Prism tests are disabled")
168+
@pytest.mark.skip(reason="Mock server tests are disabled")
169169
@parametrize
170170
async def test_streaming_response_create(self, async_client: AsyncIsaacus) -> None:
171171
async with async_client.rerankings.with_streaming_response.create(

0 commit comments

Comments
 (0)