Skip to content

Commit 38fccc3

Browse files
chore: improve example values
1 parent f6d0905 commit 38fccc3

12 files changed

Lines changed: 92 additions & 92 deletions

tests/api_resources/phone_numbers/test_jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def test_method_update_batch_with_all_params(self, client: Telnyx) -> None:
199199
"t38_fax_gateway_enabled": True,
200200
},
201201
"tech_prefix_enabled": True,
202-
"translated_number": "translated_number",
202+
"translated_number": "+13035559999",
203203
"usage_payment_method": "pay-per-minute",
204204
},
205205
)
@@ -460,7 +460,7 @@ async def test_method_update_batch_with_all_params(self, async_client: AsyncTeln
460460
"t38_fax_gateway_enabled": True,
461461
},
462462
"tech_prefix_enabled": True,
463-
"translated_number": "translated_number",
463+
"translated_number": "+13035559999",
464464
"usage_payment_method": "pay-per-minute",
465465
},
466466
)

tests/api_resources/phone_numbers/test_voicemail.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ def test_path_params_create(self, client: Telnyx) -> None:
7777
@parametrize
7878
def test_method_retrieve(self, client: Telnyx) -> None:
7979
voicemail = client.phone_numbers.voicemail.retrieve(
80-
"phone_number_id",
80+
"123455678900",
8181
)
8282
assert_matches_type(VoicemailRetrieveResponse, voicemail, path=["response"])
8383

8484
@pytest.mark.skip(reason="Prism tests are disabled")
8585
@parametrize
8686
def test_raw_response_retrieve(self, client: Telnyx) -> None:
8787
response = client.phone_numbers.voicemail.with_raw_response.retrieve(
88-
"phone_number_id",
88+
"123455678900",
8989
)
9090

9191
assert response.is_closed is True
@@ -97,7 +97,7 @@ def test_raw_response_retrieve(self, client: Telnyx) -> None:
9797
@parametrize
9898
def test_streaming_response_retrieve(self, client: Telnyx) -> None:
9999
with client.phone_numbers.voicemail.with_streaming_response.retrieve(
100-
"phone_number_id",
100+
"123455678900",
101101
) as response:
102102
assert not response.is_closed
103103
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -229,15 +229,15 @@ async def test_path_params_create(self, async_client: AsyncTelnyx) -> None:
229229
@parametrize
230230
async def test_method_retrieve(self, async_client: AsyncTelnyx) -> None:
231231
voicemail = await async_client.phone_numbers.voicemail.retrieve(
232-
"phone_number_id",
232+
"123455678900",
233233
)
234234
assert_matches_type(VoicemailRetrieveResponse, voicemail, path=["response"])
235235

236236
@pytest.mark.skip(reason="Prism tests are disabled")
237237
@parametrize
238238
async def test_raw_response_retrieve(self, async_client: AsyncTelnyx) -> None:
239239
response = await async_client.phone_numbers.voicemail.with_raw_response.retrieve(
240-
"phone_number_id",
240+
"123455678900",
241241
)
242242

243243
assert response.is_closed is True
@@ -249,7 +249,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncTelnyx) -> None:
249249
@parametrize
250250
async def test_streaming_response_retrieve(self, async_client: AsyncTelnyx) -> None:
251251
async with async_client.phone_numbers.voicemail.with_streaming_response.retrieve(
252-
"phone_number_id",
252+
"123455678900",
253253
) as response:
254254
assert not response.is_closed
255255
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/storage/buckets/test_ssl_certificate.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ def test_path_params_create(self, client: Telnyx) -> None:
7777
@parametrize
7878
def test_method_retrieve(self, client: Telnyx) -> None:
7979
ssl_certificate = client.storage.buckets.ssl_certificate.retrieve(
80-
"bucketName",
80+
"",
8181
)
8282
assert_matches_type(SslCertificateRetrieveResponse, ssl_certificate, path=["response"])
8383

8484
@pytest.mark.skip(reason="Prism tests are disabled")
8585
@parametrize
8686
def test_raw_response_retrieve(self, client: Telnyx) -> None:
8787
response = client.storage.buckets.ssl_certificate.with_raw_response.retrieve(
88-
"bucketName",
88+
"",
8989
)
9090

9191
assert response.is_closed is True
@@ -97,7 +97,7 @@ def test_raw_response_retrieve(self, client: Telnyx) -> None:
9797
@parametrize
9898
def test_streaming_response_retrieve(self, client: Telnyx) -> None:
9999
with client.storage.buckets.ssl_certificate.with_streaming_response.retrieve(
100-
"bucketName",
100+
"",
101101
) as response:
102102
assert not response.is_closed
103103
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -119,15 +119,15 @@ def test_path_params_retrieve(self, client: Telnyx) -> None:
119119
@parametrize
120120
def test_method_delete(self, client: Telnyx) -> None:
121121
ssl_certificate = client.storage.buckets.ssl_certificate.delete(
122-
"bucketName",
122+
"",
123123
)
124124
assert_matches_type(SslCertificateDeleteResponse, ssl_certificate, path=["response"])
125125

126126
@pytest.mark.skip(reason="Prism tests are disabled")
127127
@parametrize
128128
def test_raw_response_delete(self, client: Telnyx) -> None:
129129
response = client.storage.buckets.ssl_certificate.with_raw_response.delete(
130-
"bucketName",
130+
"",
131131
)
132132

133133
assert response.is_closed is True
@@ -139,7 +139,7 @@ def test_raw_response_delete(self, client: Telnyx) -> None:
139139
@parametrize
140140
def test_streaming_response_delete(self, client: Telnyx) -> None:
141141
with client.storage.buckets.ssl_certificate.with_streaming_response.delete(
142-
"bucketName",
142+
"",
143143
) as response:
144144
assert not response.is_closed
145145
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -219,15 +219,15 @@ async def test_path_params_create(self, async_client: AsyncTelnyx) -> None:
219219
@parametrize
220220
async def test_method_retrieve(self, async_client: AsyncTelnyx) -> None:
221221
ssl_certificate = await async_client.storage.buckets.ssl_certificate.retrieve(
222-
"bucketName",
222+
"",
223223
)
224224
assert_matches_type(SslCertificateRetrieveResponse, ssl_certificate, path=["response"])
225225

226226
@pytest.mark.skip(reason="Prism tests are disabled")
227227
@parametrize
228228
async def test_raw_response_retrieve(self, async_client: AsyncTelnyx) -> None:
229229
response = await async_client.storage.buckets.ssl_certificate.with_raw_response.retrieve(
230-
"bucketName",
230+
"",
231231
)
232232

233233
assert response.is_closed is True
@@ -239,7 +239,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncTelnyx) -> None:
239239
@parametrize
240240
async def test_streaming_response_retrieve(self, async_client: AsyncTelnyx) -> None:
241241
async with async_client.storage.buckets.ssl_certificate.with_streaming_response.retrieve(
242-
"bucketName",
242+
"",
243243
) as response:
244244
assert not response.is_closed
245245
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -261,15 +261,15 @@ async def test_path_params_retrieve(self, async_client: AsyncTelnyx) -> None:
261261
@parametrize
262262
async def test_method_delete(self, async_client: AsyncTelnyx) -> None:
263263
ssl_certificate = await async_client.storage.buckets.ssl_certificate.delete(
264-
"bucketName",
264+
"",
265265
)
266266
assert_matches_type(SslCertificateDeleteResponse, ssl_certificate, path=["response"])
267267

268268
@pytest.mark.skip(reason="Prism tests are disabled")
269269
@parametrize
270270
async def test_raw_response_delete(self, async_client: AsyncTelnyx) -> None:
271271
response = await async_client.storage.buckets.ssl_certificate.with_raw_response.delete(
272-
"bucketName",
272+
"",
273273
)
274274

275275
assert response.is_closed is True
@@ -281,7 +281,7 @@ async def test_raw_response_delete(self, async_client: AsyncTelnyx) -> None:
281281
@parametrize
282282
async def test_streaming_response_delete(self, async_client: AsyncTelnyx) -> None:
283283
async with async_client.storage.buckets.ssl_certificate.with_streaming_response.delete(
284-
"bucketName",
284+
"",
285285
) as response:
286286
assert not response.is_closed
287287
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/storage/buckets/test_usage.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ def test_path_params_get_api_usage(self, client: Telnyx) -> None:
8383
@parametrize
8484
def test_method_get_bucket_usage(self, client: Telnyx) -> None:
8585
usage = client.storage.buckets.usage.get_bucket_usage(
86-
"bucketName",
86+
"",
8787
)
8888
assert_matches_type(UsageGetBucketUsageResponse, usage, path=["response"])
8989

9090
@pytest.mark.skip(reason="Prism tests are disabled")
9191
@parametrize
9292
def test_raw_response_get_bucket_usage(self, client: Telnyx) -> None:
9393
response = client.storage.buckets.usage.with_raw_response.get_bucket_usage(
94-
"bucketName",
94+
"",
9595
)
9696

9797
assert response.is_closed is True
@@ -103,7 +103,7 @@ def test_raw_response_get_bucket_usage(self, client: Telnyx) -> None:
103103
@parametrize
104104
def test_streaming_response_get_bucket_usage(self, client: Telnyx) -> None:
105105
with client.storage.buckets.usage.with_streaming_response.get_bucket_usage(
106-
"bucketName",
106+
"",
107107
) as response:
108108
assert not response.is_closed
109109
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -189,15 +189,15 @@ async def test_path_params_get_api_usage(self, async_client: AsyncTelnyx) -> Non
189189
@parametrize
190190
async def test_method_get_bucket_usage(self, async_client: AsyncTelnyx) -> None:
191191
usage = await async_client.storage.buckets.usage.get_bucket_usage(
192-
"bucketName",
192+
"",
193193
)
194194
assert_matches_type(UsageGetBucketUsageResponse, usage, path=["response"])
195195

196196
@pytest.mark.skip(reason="Prism tests are disabled")
197197
@parametrize
198198
async def test_raw_response_get_bucket_usage(self, async_client: AsyncTelnyx) -> None:
199199
response = await async_client.storage.buckets.usage.with_raw_response.get_bucket_usage(
200-
"bucketName",
200+
"",
201201
)
202202

203203
assert response.is_closed is True
@@ -209,7 +209,7 @@ async def test_raw_response_get_bucket_usage(self, async_client: AsyncTelnyx) ->
209209
@parametrize
210210
async def test_streaming_response_get_bucket_usage(self, async_client: AsyncTelnyx) -> None:
211211
async with async_client.storage.buckets.usage.with_streaming_response.get_bucket_usage(
212-
"bucketName",
212+
"",
213213
) as response:
214214
assert not response.is_closed
215215
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/storage/migrations/test_actions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class TestActions:
2121
@parametrize
2222
def test_method_stop(self, client: Telnyx) -> None:
2323
action = client.storage.migrations.actions.stop(
24-
"id",
24+
"",
2525
)
2626
assert_matches_type(ActionStopResponse, action, path=["response"])
2727

2828
@pytest.mark.skip(reason="Prism tests are disabled")
2929
@parametrize
3030
def test_raw_response_stop(self, client: Telnyx) -> None:
3131
response = client.storage.migrations.actions.with_raw_response.stop(
32-
"id",
32+
"",
3333
)
3434

3535
assert response.is_closed is True
@@ -41,7 +41,7 @@ def test_raw_response_stop(self, client: Telnyx) -> None:
4141
@parametrize
4242
def test_streaming_response_stop(self, client: Telnyx) -> None:
4343
with client.storage.migrations.actions.with_streaming_response.stop(
44-
"id",
44+
"",
4545
) as response:
4646
assert not response.is_closed
4747
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -69,15 +69,15 @@ class TestAsyncActions:
6969
@parametrize
7070
async def test_method_stop(self, async_client: AsyncTelnyx) -> None:
7171
action = await async_client.storage.migrations.actions.stop(
72-
"id",
72+
"",
7373
)
7474
assert_matches_type(ActionStopResponse, action, path=["response"])
7575

7676
@pytest.mark.skip(reason="Prism tests are disabled")
7777
@parametrize
7878
async def test_raw_response_stop(self, async_client: AsyncTelnyx) -> None:
7979
response = await async_client.storage.migrations.actions.with_raw_response.stop(
80-
"id",
80+
"",
8181
)
8282

8383
assert response.is_closed is True
@@ -89,7 +89,7 @@ async def test_raw_response_stop(self, async_client: AsyncTelnyx) -> None:
8989
@parametrize
9090
async def test_streaming_response_stop(self, async_client: AsyncTelnyx) -> None:
9191
async with async_client.storage.migrations.actions.with_streaming_response.stop(
92-
"id",
92+
"",
9393
) as response:
9494
assert not response.is_closed
9595
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/storage/test_migration_sources.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ def test_streaming_response_create(self, client: Telnyx) -> None:
8080
@parametrize
8181
def test_method_retrieve(self, client: Telnyx) -> None:
8282
migration_source = client.storage.migration_sources.retrieve(
83-
"id",
83+
"",
8484
)
8585
assert_matches_type(MigrationSourceRetrieveResponse, migration_source, path=["response"])
8686

8787
@pytest.mark.skip(reason="Prism tests are disabled")
8888
@parametrize
8989
def test_raw_response_retrieve(self, client: Telnyx) -> None:
9090
response = client.storage.migration_sources.with_raw_response.retrieve(
91-
"id",
91+
"",
9292
)
9393

9494
assert response.is_closed is True
@@ -100,7 +100,7 @@ def test_raw_response_retrieve(self, client: Telnyx) -> None:
100100
@parametrize
101101
def test_streaming_response_retrieve(self, client: Telnyx) -> None:
102102
with client.storage.migration_sources.with_streaming_response.retrieve(
103-
"id",
103+
"",
104104
) as response:
105105
assert not response.is_closed
106106
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -150,15 +150,15 @@ def test_streaming_response_list(self, client: Telnyx) -> None:
150150
@parametrize
151151
def test_method_delete(self, client: Telnyx) -> None:
152152
migration_source = client.storage.migration_sources.delete(
153-
"id",
153+
"",
154154
)
155155
assert_matches_type(MigrationSourceDeleteResponse, migration_source, path=["response"])
156156

157157
@pytest.mark.skip(reason="Prism tests are disabled")
158158
@parametrize
159159
def test_raw_response_delete(self, client: Telnyx) -> None:
160160
response = client.storage.migration_sources.with_raw_response.delete(
161-
"id",
161+
"",
162162
)
163163

164164
assert response.is_closed is True
@@ -170,7 +170,7 @@ def test_raw_response_delete(self, client: Telnyx) -> None:
170170
@parametrize
171171
def test_streaming_response_delete(self, client: Telnyx) -> None:
172172
with client.storage.migration_sources.with_streaming_response.delete(
173-
"id",
173+
"",
174174
) as response:
175175
assert not response.is_closed
176176
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -252,15 +252,15 @@ async def test_streaming_response_create(self, async_client: AsyncTelnyx) -> Non
252252
@parametrize
253253
async def test_method_retrieve(self, async_client: AsyncTelnyx) -> None:
254254
migration_source = await async_client.storage.migration_sources.retrieve(
255-
"id",
255+
"",
256256
)
257257
assert_matches_type(MigrationSourceRetrieveResponse, migration_source, path=["response"])
258258

259259
@pytest.mark.skip(reason="Prism tests are disabled")
260260
@parametrize
261261
async def test_raw_response_retrieve(self, async_client: AsyncTelnyx) -> None:
262262
response = await async_client.storage.migration_sources.with_raw_response.retrieve(
263-
"id",
263+
"",
264264
)
265265

266266
assert response.is_closed is True
@@ -272,7 +272,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncTelnyx) -> None:
272272
@parametrize
273273
async def test_streaming_response_retrieve(self, async_client: AsyncTelnyx) -> None:
274274
async with async_client.storage.migration_sources.with_streaming_response.retrieve(
275-
"id",
275+
"",
276276
) as response:
277277
assert not response.is_closed
278278
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -322,15 +322,15 @@ async def test_streaming_response_list(self, async_client: AsyncTelnyx) -> None:
322322
@parametrize
323323
async def test_method_delete(self, async_client: AsyncTelnyx) -> None:
324324
migration_source = await async_client.storage.migration_sources.delete(
325-
"id",
325+
"",
326326
)
327327
assert_matches_type(MigrationSourceDeleteResponse, migration_source, path=["response"])
328328

329329
@pytest.mark.skip(reason="Prism tests are disabled")
330330
@parametrize
331331
async def test_raw_response_delete(self, async_client: AsyncTelnyx) -> None:
332332
response = await async_client.storage.migration_sources.with_raw_response.delete(
333-
"id",
333+
"",
334334
)
335335

336336
assert response.is_closed is True
@@ -342,7 +342,7 @@ async def test_raw_response_delete(self, async_client: AsyncTelnyx) -> None:
342342
@parametrize
343343
async def test_streaming_response_delete(self, async_client: AsyncTelnyx) -> None:
344344
async with async_client.storage.migration_sources.with_streaming_response.delete(
345-
"id",
345+
"",
346346
) as response:
347347
assert not response.is_closed
348348
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

0 commit comments

Comments
 (0)