Skip to content

Commit 5fbdcbf

Browse files
feat: Merge branch 'vaishak/skip-worker-test' into 'main'
chore: skip workers tests which needs the spec to be published See merge request cloudflare/sdks/cloudflare-config!118
1 parent 7ea0926 commit 5fbdcbf

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1809
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77d61495fecd0d26b9adff1af0ab3510b06a3cc2c6781b9a40aabcad2f10588a.yml
33
openapi_spec_hash: 95dee3be411dda77306a41dc7d49eb35
4-
config_hash: db0ff227af424d15b1c84f467e04c023
4+
config_hash: cd65fca0235d6658a3268cefb3d7017b

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ filelock==3.12.4
5050
frozenlist==1.6.2
5151
# via aiohttp
5252
# via aiosignal
53-
griffe==1.13.0
53+
griffe==1.14.0
5454
h11==0.16.0
5555
# via httpcore
5656
httpcore==1.0.9

tests/api_resources/workers/scripts/test_script_and_version_settings.py

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

23+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
2324
@parametrize
2425
def test_method_edit(self, client: Cloudflare) -> None:
2526
script_and_version_setting = client.workers.scripts.script_and_version_settings.edit(
@@ -28,6 +29,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
2829
)
2930
assert_matches_type(ScriptAndVersionSettingEditResponse, script_and_version_setting, path=["response"])
3031

32+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
3133
@parametrize
3234
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
3335
script_and_version_setting = client.workers.scripts.script_and_version_settings.edit(
@@ -88,6 +90,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
8890
)
8991
assert_matches_type(ScriptAndVersionSettingEditResponse, script_and_version_setting, path=["response"])
9092

93+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
9194
@parametrize
9295
def test_raw_response_edit(self, client: Cloudflare) -> None:
9396
response = client.workers.scripts.script_and_version_settings.with_raw_response.edit(
@@ -100,6 +103,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
100103
script_and_version_setting = response.parse()
101104
assert_matches_type(ScriptAndVersionSettingEditResponse, script_and_version_setting, path=["response"])
102105

106+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
103107
@parametrize
104108
def test_streaming_response_edit(self, client: Cloudflare) -> None:
105109
with client.workers.scripts.script_and_version_settings.with_streaming_response.edit(
@@ -114,6 +118,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
114118

115119
assert cast(Any, response.is_closed) is True
116120

121+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
117122
@parametrize
118123
def test_path_params_edit(self, client: Cloudflare) -> None:
119124
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -182,6 +187,7 @@ class TestAsyncScriptAndVersionSettings:
182187
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
183188
)
184189

190+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
185191
@parametrize
186192
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
187193
script_and_version_setting = await async_client.workers.scripts.script_and_version_settings.edit(
@@ -190,6 +196,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
190196
)
191197
assert_matches_type(ScriptAndVersionSettingEditResponse, script_and_version_setting, path=["response"])
192198

199+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
193200
@parametrize
194201
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
195202
script_and_version_setting = await async_client.workers.scripts.script_and_version_settings.edit(
@@ -250,6 +257,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
250257
)
251258
assert_matches_type(ScriptAndVersionSettingEditResponse, script_and_version_setting, path=["response"])
252259

260+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
253261
@parametrize
254262
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
255263
response = await async_client.workers.scripts.script_and_version_settings.with_raw_response.edit(
@@ -262,6 +270,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
262270
script_and_version_setting = await response.parse()
263271
assert_matches_type(ScriptAndVersionSettingEditResponse, script_and_version_setting, path=["response"])
264272

273+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
265274
@parametrize
266275
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
267276
async with async_client.workers.scripts.script_and_version_settings.with_streaming_response.edit(
@@ -276,6 +285,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
276285

277286
assert cast(Any, response.is_closed) is True
278287

288+
@pytest.mark.skip(reason="422 Unprocessable Entity: needs schema update which is merged but not published")
279289
@parametrize
280290
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
281291
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)