Skip to content

Commit cef4896

Browse files
chore: update mock server docs
1 parent 3c5deb3 commit cef4896

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1350
-1357
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/environments/automations/tasks/test_executions.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
class TestExecutions:
2222
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
2323

24-
@pytest.mark.skip(reason="Prism tests are disabled")
24+
@pytest.mark.skip(reason="Mock server tests are disabled")
2525
@parametrize
2626
def test_method_retrieve(self, client: Gitpod) -> None:
2727
execution = client.environments.automations.tasks.executions.retrieve()
2828
assert_matches_type(ExecutionRetrieveResponse, execution, 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_retrieve_with_all_params(self, client: Gitpod) -> None:
3333
execution = client.environments.automations.tasks.executions.retrieve(
3434
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
3535
)
3636
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])
3737

38-
@pytest.mark.skip(reason="Prism tests are disabled")
38+
@pytest.mark.skip(reason="Mock server tests are disabled")
3939
@parametrize
4040
def test_raw_response_retrieve(self, client: Gitpod) -> None:
4141
response = client.environments.automations.tasks.executions.with_raw_response.retrieve()
@@ -45,7 +45,7 @@ def test_raw_response_retrieve(self, client: Gitpod) -> None:
4545
execution = response.parse()
4646
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])
4747

48-
@pytest.mark.skip(reason="Prism tests are disabled")
48+
@pytest.mark.skip(reason="Mock server tests are disabled")
4949
@parametrize
5050
def test_streaming_response_retrieve(self, client: Gitpod) -> None:
5151
with client.environments.automations.tasks.executions.with_streaming_response.retrieve() as response:
@@ -57,13 +57,13 @@ def test_streaming_response_retrieve(self, client: Gitpod) -> None:
5757

5858
assert cast(Any, response.is_closed) is True
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_method_list(self, client: Gitpod) -> None:
6363
execution = client.environments.automations.tasks.executions.list()
6464
assert_matches_type(SyncTaskExecutionsPage[TaskExecution], execution, path=["response"])
6565

66-
@pytest.mark.skip(reason="Prism tests are disabled")
66+
@pytest.mark.skip(reason="Mock server tests are disabled")
6767
@parametrize
6868
def test_method_list_with_all_params(self, client: Gitpod) -> None:
6969
execution = client.environments.automations.tasks.executions.list(
@@ -82,7 +82,7 @@ def test_method_list_with_all_params(self, client: Gitpod) -> None:
8282
)
8383
assert_matches_type(SyncTaskExecutionsPage[TaskExecution], execution, path=["response"])
8484

85-
@pytest.mark.skip(reason="Prism tests are disabled")
85+
@pytest.mark.skip(reason="Mock server tests are disabled")
8686
@parametrize
8787
def test_raw_response_list(self, client: Gitpod) -> None:
8888
response = client.environments.automations.tasks.executions.with_raw_response.list()
@@ -92,7 +92,7 @@ def test_raw_response_list(self, client: Gitpod) -> None:
9292
execution = response.parse()
9393
assert_matches_type(SyncTaskExecutionsPage[TaskExecution], execution, 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_list(self, client: Gitpod) -> None:
9898
with client.environments.automations.tasks.executions.with_streaming_response.list() as response:
@@ -104,21 +104,21 @@ def test_streaming_response_list(self, client: Gitpod) -> None:
104104

105105
assert cast(Any, response.is_closed) is True
106106

107-
@pytest.mark.skip(reason="Prism tests are disabled")
107+
@pytest.mark.skip(reason="Mock server tests are disabled")
108108
@parametrize
109109
def test_method_stop(self, client: Gitpod) -> None:
110110
execution = client.environments.automations.tasks.executions.stop()
111111
assert_matches_type(object, execution, path=["response"])
112112

113-
@pytest.mark.skip(reason="Prism tests are disabled")
113+
@pytest.mark.skip(reason="Mock server tests are disabled")
114114
@parametrize
115115
def test_method_stop_with_all_params(self, client: Gitpod) -> None:
116116
execution = client.environments.automations.tasks.executions.stop(
117117
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
118118
)
119119
assert_matches_type(object, execution, path=["response"])
120120

121-
@pytest.mark.skip(reason="Prism tests are disabled")
121+
@pytest.mark.skip(reason="Mock server tests are disabled")
122122
@parametrize
123123
def test_raw_response_stop(self, client: Gitpod) -> None:
124124
response = client.environments.automations.tasks.executions.with_raw_response.stop()
@@ -128,7 +128,7 @@ def test_raw_response_stop(self, client: Gitpod) -> None:
128128
execution = response.parse()
129129
assert_matches_type(object, execution, path=["response"])
130130

131-
@pytest.mark.skip(reason="Prism tests are disabled")
131+
@pytest.mark.skip(reason="Mock server tests are disabled")
132132
@parametrize
133133
def test_streaming_response_stop(self, client: Gitpod) -> None:
134134
with client.environments.automations.tasks.executions.with_streaming_response.stop() as response:
@@ -146,21 +146,21 @@ class TestAsyncExecutions:
146146
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
147147
)
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_method_retrieve(self, async_client: AsyncGitpod) -> None:
152152
execution = await async_client.environments.automations.tasks.executions.retrieve()
153153
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])
154154

155-
@pytest.mark.skip(reason="Prism tests are disabled")
155+
@pytest.mark.skip(reason="Mock server tests are disabled")
156156
@parametrize
157157
async def test_method_retrieve_with_all_params(self, async_client: AsyncGitpod) -> None:
158158
execution = await async_client.environments.automations.tasks.executions.retrieve(
159159
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
160160
)
161161
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])
162162

163-
@pytest.mark.skip(reason="Prism tests are disabled")
163+
@pytest.mark.skip(reason="Mock server tests are disabled")
164164
@parametrize
165165
async def test_raw_response_retrieve(self, async_client: AsyncGitpod) -> None:
166166
response = await async_client.environments.automations.tasks.executions.with_raw_response.retrieve()
@@ -170,7 +170,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncGitpod) -> None:
170170
execution = await response.parse()
171171
assert_matches_type(ExecutionRetrieveResponse, execution, path=["response"])
172172

173-
@pytest.mark.skip(reason="Prism tests are disabled")
173+
@pytest.mark.skip(reason="Mock server tests are disabled")
174174
@parametrize
175175
async def test_streaming_response_retrieve(self, async_client: AsyncGitpod) -> None:
176176
async with (
@@ -184,13 +184,13 @@ async def test_streaming_response_retrieve(self, async_client: AsyncGitpod) -> N
184184

185185
assert cast(Any, response.is_closed) is True
186186

187-
@pytest.mark.skip(reason="Prism tests are disabled")
187+
@pytest.mark.skip(reason="Mock server tests are disabled")
188188
@parametrize
189189
async def test_method_list(self, async_client: AsyncGitpod) -> None:
190190
execution = await async_client.environments.automations.tasks.executions.list()
191191
assert_matches_type(AsyncTaskExecutionsPage[TaskExecution], execution, path=["response"])
192192

193-
@pytest.mark.skip(reason="Prism tests are disabled")
193+
@pytest.mark.skip(reason="Mock server tests are disabled")
194194
@parametrize
195195
async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> None:
196196
execution = await async_client.environments.automations.tasks.executions.list(
@@ -209,7 +209,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncGitpod) -> N
209209
)
210210
assert_matches_type(AsyncTaskExecutionsPage[TaskExecution], execution, path=["response"])
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_raw_response_list(self, async_client: AsyncGitpod) -> None:
215215
response = await async_client.environments.automations.tasks.executions.with_raw_response.list()
@@ -219,7 +219,7 @@ async def test_raw_response_list(self, async_client: AsyncGitpod) -> None:
219219
execution = await response.parse()
220220
assert_matches_type(AsyncTaskExecutionsPage[TaskExecution], execution, path=["response"])
221221

222-
@pytest.mark.skip(reason="Prism tests are disabled")
222+
@pytest.mark.skip(reason="Mock server tests are disabled")
223223
@parametrize
224224
async def test_streaming_response_list(self, async_client: AsyncGitpod) -> None:
225225
async with async_client.environments.automations.tasks.executions.with_streaming_response.list() as response:
@@ -231,21 +231,21 @@ async def test_streaming_response_list(self, async_client: AsyncGitpod) -> None:
231231

232232
assert cast(Any, response.is_closed) is True
233233

234-
@pytest.mark.skip(reason="Prism tests are disabled")
234+
@pytest.mark.skip(reason="Mock server tests are disabled")
235235
@parametrize
236236
async def test_method_stop(self, async_client: AsyncGitpod) -> None:
237237
execution = await async_client.environments.automations.tasks.executions.stop()
238238
assert_matches_type(object, execution, path=["response"])
239239

240-
@pytest.mark.skip(reason="Prism tests are disabled")
240+
@pytest.mark.skip(reason="Mock server tests are disabled")
241241
@parametrize
242242
async def test_method_stop_with_all_params(self, async_client: AsyncGitpod) -> None:
243243
execution = await async_client.environments.automations.tasks.executions.stop(
244244
id="d2c94c27-3b76-4a42-b88c-95a85e392c68",
245245
)
246246
assert_matches_type(object, execution, path=["response"])
247247

248-
@pytest.mark.skip(reason="Prism tests are disabled")
248+
@pytest.mark.skip(reason="Mock server tests are disabled")
249249
@parametrize
250250
async def test_raw_response_stop(self, async_client: AsyncGitpod) -> None:
251251
response = await async_client.environments.automations.tasks.executions.with_raw_response.stop()
@@ -255,7 +255,7 @@ async def test_raw_response_stop(self, async_client: AsyncGitpod) -> None:
255255
execution = await response.parse()
256256
assert_matches_type(object, execution, path=["response"])
257257

258-
@pytest.mark.skip(reason="Prism tests are disabled")
258+
@pytest.mark.skip(reason="Mock server tests are disabled")
259259
@parametrize
260260
async def test_streaming_response_stop(self, async_client: AsyncGitpod) -> None:
261261
async with async_client.environments.automations.tasks.executions.with_streaming_response.stop() as response:

0 commit comments

Comments
 (0)