Skip to content

Commit daa7fe0

Browse files
chore(api): upload stainless config from cloudflare-config
1 parent 2496ef6 commit daa7fe0

6 files changed

Lines changed: 85 additions & 1 deletion

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: 1783
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e408a7cdec2dae3d1a18842dcc59280c56050fb042569139aec3fe0f12e0d461.yml
33
openapi_spec_hash: 7e210c76f5dd4c79b3e67204ad279b81
4-
config_hash: 7ac0d4c75c3f166b66a81e21a3d97f15
4+
config_hash: 43130be32c5ad35813f78ea0d90fb11d

tests/api_resources/brand_protection/test_logo_matches.py

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

23+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
2324
@parametrize
2425
def test_method_download(self, client: Cloudflare) -> None:
2526
logo_match = client.brand_protection.logo_matches.download(
2627
account_id="x",
2728
)
2829
assert_matches_type(LogoMatchDownloadResponse, logo_match, path=["response"])
2930

31+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
3032
@parametrize
3133
def test_method_download_with_all_params(self, client: Cloudflare) -> None:
3234
logo_match = client.brand_protection.logo_matches.download(
@@ -37,6 +39,7 @@ def test_method_download_with_all_params(self, client: Cloudflare) -> None:
3739
)
3840
assert_matches_type(LogoMatchDownloadResponse, logo_match, path=["response"])
3941

42+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
4043
@parametrize
4144
def test_raw_response_download(self, client: Cloudflare) -> None:
4245
response = client.brand_protection.logo_matches.with_raw_response.download(
@@ -48,6 +51,7 @@ def test_raw_response_download(self, client: Cloudflare) -> None:
4851
logo_match = response.parse()
4952
assert_matches_type(LogoMatchDownloadResponse, logo_match, path=["response"])
5053

54+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
5155
@parametrize
5256
def test_streaming_response_download(self, client: Cloudflare) -> None:
5357
with client.brand_protection.logo_matches.with_streaming_response.download(
@@ -61,20 +65,23 @@ def test_streaming_response_download(self, client: Cloudflare) -> None:
6165

6266
assert cast(Any, response.is_closed) is True
6367

68+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
6469
@parametrize
6570
def test_path_params_download(self, client: Cloudflare) -> None:
6671
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
6772
client.brand_protection.logo_matches.with_raw_response.download(
6873
account_id="",
6974
)
7075

76+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
7177
@parametrize
7278
def test_method_get(self, client: Cloudflare) -> None:
7379
logo_match = client.brand_protection.logo_matches.get(
7480
account_id="x",
7581
)
7682
assert_matches_type(LogoMatchGetResponse, logo_match, path=["response"])
7783

84+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
7885
@parametrize
7986
def test_method_get_with_all_params(self, client: Cloudflare) -> None:
8087
logo_match = client.brand_protection.logo_matches.get(
@@ -85,6 +92,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None:
8592
)
8693
assert_matches_type(LogoMatchGetResponse, logo_match, path=["response"])
8794

95+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
8896
@parametrize
8997
def test_raw_response_get(self, client: Cloudflare) -> None:
9098
response = client.brand_protection.logo_matches.with_raw_response.get(
@@ -96,6 +104,7 @@ def test_raw_response_get(self, client: Cloudflare) -> None:
96104
logo_match = response.parse()
97105
assert_matches_type(LogoMatchGetResponse, logo_match, path=["response"])
98106

107+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
99108
@parametrize
100109
def test_streaming_response_get(self, client: Cloudflare) -> None:
101110
with client.brand_protection.logo_matches.with_streaming_response.get(
@@ -109,6 +118,7 @@ def test_streaming_response_get(self, client: Cloudflare) -> None:
109118

110119
assert cast(Any, response.is_closed) is True
111120

121+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
112122
@parametrize
113123
def test_path_params_get(self, client: Cloudflare) -> None:
114124
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -122,13 +132,15 @@ class TestAsyncLogoMatches:
122132
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
123133
)
124134

135+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
125136
@parametrize
126137
async def test_method_download(self, async_client: AsyncCloudflare) -> None:
127138
logo_match = await async_client.brand_protection.logo_matches.download(
128139
account_id="x",
129140
)
130141
assert_matches_type(LogoMatchDownloadResponse, logo_match, path=["response"])
131142

143+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
132144
@parametrize
133145
async def test_method_download_with_all_params(self, async_client: AsyncCloudflare) -> None:
134146
logo_match = await async_client.brand_protection.logo_matches.download(
@@ -139,6 +151,7 @@ async def test_method_download_with_all_params(self, async_client: AsyncCloudfla
139151
)
140152
assert_matches_type(LogoMatchDownloadResponse, logo_match, path=["response"])
141153

154+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
142155
@parametrize
143156
async def test_raw_response_download(self, async_client: AsyncCloudflare) -> None:
144157
response = await async_client.brand_protection.logo_matches.with_raw_response.download(
@@ -150,6 +163,7 @@ async def test_raw_response_download(self, async_client: AsyncCloudflare) -> Non
150163
logo_match = await response.parse()
151164
assert_matches_type(LogoMatchDownloadResponse, logo_match, path=["response"])
152165

166+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
153167
@parametrize
154168
async def test_streaming_response_download(self, async_client: AsyncCloudflare) -> None:
155169
async with async_client.brand_protection.logo_matches.with_streaming_response.download(
@@ -163,20 +177,23 @@ async def test_streaming_response_download(self, async_client: AsyncCloudflare)
163177

164178
assert cast(Any, response.is_closed) is True
165179

180+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
166181
@parametrize
167182
async def test_path_params_download(self, async_client: AsyncCloudflare) -> None:
168183
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
169184
await async_client.brand_protection.logo_matches.with_raw_response.download(
170185
account_id="",
171186
)
172187

188+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
173189
@parametrize
174190
async def test_method_get(self, async_client: AsyncCloudflare) -> None:
175191
logo_match = await async_client.brand_protection.logo_matches.get(
176192
account_id="x",
177193
)
178194
assert_matches_type(LogoMatchGetResponse, logo_match, path=["response"])
179195

196+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
180197
@parametrize
181198
async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -> None:
182199
logo_match = await async_client.brand_protection.logo_matches.get(
@@ -187,6 +204,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) -
187204
)
188205
assert_matches_type(LogoMatchGetResponse, logo_match, path=["response"])
189206

207+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
190208
@parametrize
191209
async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
192210
response = await async_client.brand_protection.logo_matches.with_raw_response.get(
@@ -198,6 +216,7 @@ async def test_raw_response_get(self, async_client: AsyncCloudflare) -> None:
198216
logo_match = await response.parse()
199217
assert_matches_type(LogoMatchGetResponse, logo_match, path=["response"])
200218

219+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
201220
@parametrize
202221
async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> None:
203222
async with async_client.brand_protection.logo_matches.with_streaming_response.get(
@@ -211,6 +230,7 @@ async def test_streaming_response_get(self, async_client: AsyncCloudflare) -> No
211230

212231
assert cast(Any, response.is_closed) is True
213232

233+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
214234
@parametrize
215235
async def test_path_params_get(self, async_client: AsyncCloudflare) -> None:
216236
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/brand_protection/test_logos.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_path_params_create(self, client: Cloudflare) -> None:
7171
account_id="",
7272
)
7373

74+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
7475
@parametrize
7576
def test_method_delete(self, client: Cloudflare) -> None:
7677
logo = client.brand_protection.logos.delete(
@@ -79,6 +80,7 @@ def test_method_delete(self, client: Cloudflare) -> None:
7980
)
8081
assert logo is None
8182

83+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
8284
@parametrize
8385
def test_raw_response_delete(self, client: Cloudflare) -> None:
8486
response = client.brand_protection.logos.with_raw_response.delete(
@@ -91,6 +93,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
9193
logo = response.parse()
9294
assert logo is None
9395

96+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
9497
@parametrize
9598
def test_streaming_response_delete(self, client: Cloudflare) -> None:
9699
with client.brand_protection.logos.with_streaming_response.delete(
@@ -105,6 +108,7 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
105108

106109
assert cast(Any, response.is_closed) is True
107110

111+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
108112
@parametrize
109113
def test_path_params_delete(self, client: Cloudflare) -> None:
110114
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -179,6 +183,7 @@ async def test_path_params_create(self, async_client: AsyncCloudflare) -> None:
179183
account_id="",
180184
)
181185

186+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
182187
@parametrize
183188
async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
184189
logo = await async_client.brand_protection.logos.delete(
@@ -187,6 +192,7 @@ async def test_method_delete(self, async_client: AsyncCloudflare) -> None:
187192
)
188193
assert logo is None
189194

195+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
190196
@parametrize
191197
async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
192198
response = await async_client.brand_protection.logos.with_raw_response.delete(
@@ -199,6 +205,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
199205
logo = await response.parse()
200206
assert logo is None
201207

208+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
202209
@parametrize
203210
async def test_streaming_response_delete(self, async_client: AsyncCloudflare) -> None:
204211
async with async_client.brand_protection.logos.with_streaming_response.delete(
@@ -213,6 +220,7 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
213220

214221
assert cast(Any, response.is_closed) is True
215222

223+
@pytest.mark.skip(reason="TODO: investigate broken test, 401 Unauthorized error")
216224
@parametrize
217225
async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
218226
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)