@@ -20,7 +20,7 @@ class TestAccounts:
20
20
@parametrize
21
21
def test_method_update (self , client : Cloudflare ) -> None :
22
22
account = client .addressing .address_maps .accounts .update (
23
- "023e105f4ecef8ad9ca31a8372d0c353" ,
23
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
24
24
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
25
25
body = {},
26
26
)
@@ -29,7 +29,7 @@ def test_method_update(self, client: Cloudflare) -> None:
29
29
@parametrize
30
30
def test_raw_response_update (self , client : Cloudflare ) -> None :
31
31
response = client .addressing .address_maps .accounts .with_raw_response .update (
32
- "023e105f4ecef8ad9ca31a8372d0c353" ,
32
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
33
33
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
34
34
body = {},
35
35
)
@@ -42,7 +42,7 @@ def test_raw_response_update(self, client: Cloudflare) -> None:
42
42
@parametrize
43
43
def test_streaming_response_update (self , client : Cloudflare ) -> None :
44
44
with client .addressing .address_maps .accounts .with_streaming_response .update (
45
- "023e105f4ecef8ad9ca31a8372d0c353" ,
45
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
46
46
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
47
47
body = {},
48
48
) as response :
@@ -58,30 +58,30 @@ def test_streaming_response_update(self, client: Cloudflare) -> None:
58
58
def test_path_params_update (self , client : Cloudflare ) -> None :
59
59
with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
60
60
client .addressing .address_maps .accounts .with_raw_response .update (
61
- "023e105f4ecef8ad9ca31a8372d0c353" ,
61
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
62
62
account_id = "" ,
63
63
body = {},
64
64
)
65
65
66
66
with pytest .raises (ValueError , match = r"Expected a non-empty value for `address_map_id` but received ''" ):
67
67
client .addressing .address_maps .accounts .with_raw_response .update (
68
- "" ,
68
+ address_map_id = "" ,
69
69
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
70
70
body = {},
71
71
)
72
72
73
73
@parametrize
74
74
def test_method_delete (self , client : Cloudflare ) -> None :
75
75
account = client .addressing .address_maps .accounts .delete (
76
- "023e105f4ecef8ad9ca31a8372d0c353" ,
76
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
77
77
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
78
78
)
79
79
assert_matches_type (Optional [AccountDeleteResponse ], account , path = ["response" ])
80
80
81
81
@parametrize
82
82
def test_raw_response_delete (self , client : Cloudflare ) -> None :
83
83
response = client .addressing .address_maps .accounts .with_raw_response .delete (
84
- "023e105f4ecef8ad9ca31a8372d0c353" ,
84
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
85
85
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
86
86
)
87
87
@@ -93,7 +93,7 @@ def test_raw_response_delete(self, client: Cloudflare) -> None:
93
93
@parametrize
94
94
def test_streaming_response_delete (self , client : Cloudflare ) -> None :
95
95
with client .addressing .address_maps .accounts .with_streaming_response .delete (
96
- "023e105f4ecef8ad9ca31a8372d0c353" ,
96
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
97
97
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
98
98
) as response :
99
99
assert not response .is_closed
@@ -108,13 +108,13 @@ def test_streaming_response_delete(self, client: Cloudflare) -> None:
108
108
def test_path_params_delete (self , client : Cloudflare ) -> None :
109
109
with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
110
110
client .addressing .address_maps .accounts .with_raw_response .delete (
111
- "023e105f4ecef8ad9ca31a8372d0c353" ,
111
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
112
112
account_id = "" ,
113
113
)
114
114
115
115
with pytest .raises (ValueError , match = r"Expected a non-empty value for `address_map_id` but received ''" ):
116
116
client .addressing .address_maps .accounts .with_raw_response .delete (
117
- "" ,
117
+ address_map_id = "" ,
118
118
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
119
119
)
120
120
@@ -125,7 +125,7 @@ class TestAsyncAccounts:
125
125
@parametrize
126
126
async def test_method_update (self , async_client : AsyncCloudflare ) -> None :
127
127
account = await async_client .addressing .address_maps .accounts .update (
128
- "023e105f4ecef8ad9ca31a8372d0c353" ,
128
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
129
129
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
130
130
body = {},
131
131
)
@@ -134,7 +134,7 @@ async def test_method_update(self, async_client: AsyncCloudflare) -> None:
134
134
@parametrize
135
135
async def test_raw_response_update (self , async_client : AsyncCloudflare ) -> None :
136
136
response = await async_client .addressing .address_maps .accounts .with_raw_response .update (
137
- "023e105f4ecef8ad9ca31a8372d0c353" ,
137
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
138
138
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
139
139
body = {},
140
140
)
@@ -147,7 +147,7 @@ async def test_raw_response_update(self, async_client: AsyncCloudflare) -> None:
147
147
@parametrize
148
148
async def test_streaming_response_update (self , async_client : AsyncCloudflare ) -> None :
149
149
async with async_client .addressing .address_maps .accounts .with_streaming_response .update (
150
- "023e105f4ecef8ad9ca31a8372d0c353" ,
150
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
151
151
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
152
152
body = {},
153
153
) as response :
@@ -163,30 +163,30 @@ async def test_streaming_response_update(self, async_client: AsyncCloudflare) ->
163
163
async def test_path_params_update (self , async_client : AsyncCloudflare ) -> None :
164
164
with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
165
165
await async_client .addressing .address_maps .accounts .with_raw_response .update (
166
- "023e105f4ecef8ad9ca31a8372d0c353" ,
166
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
167
167
account_id = "" ,
168
168
body = {},
169
169
)
170
170
171
171
with pytest .raises (ValueError , match = r"Expected a non-empty value for `address_map_id` but received ''" ):
172
172
await async_client .addressing .address_maps .accounts .with_raw_response .update (
173
- "" ,
173
+ address_map_id = "" ,
174
174
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
175
175
body = {},
176
176
)
177
177
178
178
@parametrize
179
179
async def test_method_delete (self , async_client : AsyncCloudflare ) -> None :
180
180
account = await async_client .addressing .address_maps .accounts .delete (
181
- "023e105f4ecef8ad9ca31a8372d0c353" ,
181
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
182
182
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
183
183
)
184
184
assert_matches_type (Optional [AccountDeleteResponse ], account , path = ["response" ])
185
185
186
186
@parametrize
187
187
async def test_raw_response_delete (self , async_client : AsyncCloudflare ) -> None :
188
188
response = await async_client .addressing .address_maps .accounts .with_raw_response .delete (
189
- "023e105f4ecef8ad9ca31a8372d0c353" ,
189
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
190
190
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
191
191
)
192
192
@@ -198,7 +198,7 @@ async def test_raw_response_delete(self, async_client: AsyncCloudflare) -> None:
198
198
@parametrize
199
199
async def test_streaming_response_delete (self , async_client : AsyncCloudflare ) -> None :
200
200
async with async_client .addressing .address_maps .accounts .with_streaming_response .delete (
201
- "023e105f4ecef8ad9ca31a8372d0c353" ,
201
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
202
202
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
203
203
) as response :
204
204
assert not response .is_closed
@@ -213,12 +213,12 @@ async def test_streaming_response_delete(self, async_client: AsyncCloudflare) ->
213
213
async def test_path_params_delete (self , async_client : AsyncCloudflare ) -> None :
214
214
with pytest .raises (ValueError , match = r"Expected a non-empty value for `account_id` but received ''" ):
215
215
await async_client .addressing .address_maps .accounts .with_raw_response .delete (
216
- "023e105f4ecef8ad9ca31a8372d0c353" ,
216
+ address_map_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
217
217
account_id = "" ,
218
218
)
219
219
220
220
with pytest .raises (ValueError , match = r"Expected a non-empty value for `address_map_id` but received ''" ):
221
221
await async_client .addressing .address_maps .accounts .with_raw_response .delete (
222
- "" ,
222
+ address_map_id = "" ,
223
223
account_id = "023e105f4ecef8ad9ca31a8372d0c353" ,
224
224
)
0 commit comments