Skip to content

Commit 3a623d4

Browse files
chore: update placeholder string
1 parent e3ed836 commit 3a623d4

3 files changed

Lines changed: 34 additions & 34 deletions

File tree

tests/api_resources/audio/test_transcriptions.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestTranscriptions:
2121
@parametrize
2222
def test_method_create(self, client: Dedalus) -> None:
2323
transcription = client.audio.transcriptions.create(
24-
file=b"raw file contents",
24+
file=b"Example data",
2525
model="model",
2626
)
2727
assert_matches_type(TranscriptionCreateResponse, transcription, path=["response"])
@@ -30,7 +30,7 @@ def test_method_create(self, client: Dedalus) -> None:
3030
@parametrize
3131
def test_method_create_with_all_params(self, client: Dedalus) -> None:
3232
transcription = client.audio.transcriptions.create(
33-
file=b"raw file contents",
33+
file=b"Example data",
3434
model="model",
3535
language="language",
3636
prompt="prompt",
@@ -43,7 +43,7 @@ def test_method_create_with_all_params(self, client: Dedalus) -> None:
4343
@parametrize
4444
def test_raw_response_create(self, client: Dedalus) -> None:
4545
response = client.audio.transcriptions.with_raw_response.create(
46-
file=b"raw file contents",
46+
file=b"Example data",
4747
model="model",
4848
)
4949

@@ -56,7 +56,7 @@ def test_raw_response_create(self, client: Dedalus) -> None:
5656
@parametrize
5757
def test_streaming_response_create(self, client: Dedalus) -> None:
5858
with client.audio.transcriptions.with_streaming_response.create(
59-
file=b"raw file contents",
59+
file=b"Example data",
6060
model="model",
6161
) as response:
6262
assert not response.is_closed
@@ -77,7 +77,7 @@ class TestAsyncTranscriptions:
7777
@parametrize
7878
async def test_method_create(self, async_client: AsyncDedalus) -> None:
7979
transcription = await async_client.audio.transcriptions.create(
80-
file=b"raw file contents",
80+
file=b"Example data",
8181
model="model",
8282
)
8383
assert_matches_type(TranscriptionCreateResponse, transcription, path=["response"])
@@ -86,7 +86,7 @@ async def test_method_create(self, async_client: AsyncDedalus) -> None:
8686
@parametrize
8787
async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -> None:
8888
transcription = await async_client.audio.transcriptions.create(
89-
file=b"raw file contents",
89+
file=b"Example data",
9090
model="model",
9191
language="language",
9292
prompt="prompt",
@@ -99,7 +99,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -
9999
@parametrize
100100
async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
101101
response = await async_client.audio.transcriptions.with_raw_response.create(
102-
file=b"raw file contents",
102+
file=b"Example data",
103103
model="model",
104104
)
105105

@@ -112,7 +112,7 @@ async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
112112
@parametrize
113113
async def test_streaming_response_create(self, async_client: AsyncDedalus) -> None:
114114
async with async_client.audio.transcriptions.with_streaming_response.create(
115-
file=b"raw file contents",
115+
file=b"Example data",
116116
model="model",
117117
) as response:
118118
assert not response.is_closed

tests/api_resources/audio/test_translations.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestTranslations:
2121
@parametrize
2222
def test_method_create(self, client: Dedalus) -> None:
2323
translation = client.audio.translations.create(
24-
file=b"raw file contents",
24+
file=b"Example data",
2525
model="model",
2626
)
2727
assert_matches_type(TranslationCreateResponse, translation, path=["response"])
@@ -30,7 +30,7 @@ def test_method_create(self, client: Dedalus) -> None:
3030
@parametrize
3131
def test_method_create_with_all_params(self, client: Dedalus) -> None:
3232
translation = client.audio.translations.create(
33-
file=b"raw file contents",
33+
file=b"Example data",
3434
model="model",
3535
prompt="prompt",
3636
response_format="response_format",
@@ -42,7 +42,7 @@ def test_method_create_with_all_params(self, client: Dedalus) -> None:
4242
@parametrize
4343
def test_raw_response_create(self, client: Dedalus) -> None:
4444
response = client.audio.translations.with_raw_response.create(
45-
file=b"raw file contents",
45+
file=b"Example data",
4646
model="model",
4747
)
4848

@@ -55,7 +55,7 @@ def test_raw_response_create(self, client: Dedalus) -> None:
5555
@parametrize
5656
def test_streaming_response_create(self, client: Dedalus) -> None:
5757
with client.audio.translations.with_streaming_response.create(
58-
file=b"raw file contents",
58+
file=b"Example data",
5959
model="model",
6060
) as response:
6161
assert not response.is_closed
@@ -76,7 +76,7 @@ class TestAsyncTranslations:
7676
@parametrize
7777
async def test_method_create(self, async_client: AsyncDedalus) -> None:
7878
translation = await async_client.audio.translations.create(
79-
file=b"raw file contents",
79+
file=b"Example data",
8080
model="model",
8181
)
8282
assert_matches_type(TranslationCreateResponse, translation, path=["response"])
@@ -85,7 +85,7 @@ async def test_method_create(self, async_client: AsyncDedalus) -> None:
8585
@parametrize
8686
async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -> None:
8787
translation = await async_client.audio.translations.create(
88-
file=b"raw file contents",
88+
file=b"Example data",
8989
model="model",
9090
prompt="prompt",
9191
response_format="response_format",
@@ -97,7 +97,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncDedalus) -
9797
@parametrize
9898
async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
9999
response = await async_client.audio.translations.with_raw_response.create(
100-
file=b"raw file contents",
100+
file=b"Example data",
101101
model="model",
102102
)
103103

@@ -110,7 +110,7 @@ async def test_raw_response_create(self, async_client: AsyncDedalus) -> None:
110110
@parametrize
111111
async def test_streaming_response_create(self, async_client: AsyncDedalus) -> None:
112112
async with async_client.audio.translations.with_streaming_response.create(
113-
file=b"raw file contents",
113+
file=b"Example data",
114114
model="model",
115115
) as response:
116116
assert not response.is_closed

tests/api_resources/test_images.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ class TestImages:
2121
@parametrize
2222
def test_method_create_variation(self, client: Dedalus) -> None:
2323
image = client.images.create_variation(
24-
image=b"raw file contents",
24+
image=b"Example data",
2525
)
2626
assert_matches_type(ImagesResponse, image, path=["response"])
2727

2828
@pytest.mark.skip(reason="Mock server tests are disabled")
2929
@parametrize
3030
def test_method_create_variation_with_all_params(self, client: Dedalus) -> None:
3131
image = client.images.create_variation(
32-
image=b"raw file contents",
32+
image=b"Example data",
3333
model="model",
3434
n=0,
3535
response_format="response_format",
@@ -42,7 +42,7 @@ def test_method_create_variation_with_all_params(self, client: Dedalus) -> None:
4242
@parametrize
4343
def test_raw_response_create_variation(self, client: Dedalus) -> None:
4444
response = client.images.with_raw_response.create_variation(
45-
image=b"raw file contents",
45+
image=b"Example data",
4646
)
4747

4848
assert response.is_closed is True
@@ -54,7 +54,7 @@ def test_raw_response_create_variation(self, client: Dedalus) -> None:
5454
@parametrize
5555
def test_streaming_response_create_variation(self, client: Dedalus) -> None:
5656
with client.images.with_streaming_response.create_variation(
57-
image=b"raw file contents",
57+
image=b"Example data",
5858
) as response:
5959
assert not response.is_closed
6060
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -68,7 +68,7 @@ def test_streaming_response_create_variation(self, client: Dedalus) -> None:
6868
@parametrize
6969
def test_method_edit(self, client: Dedalus) -> None:
7070
image = client.images.edit(
71-
image=b"raw file contents",
71+
image=b"Example data",
7272
prompt="prompt",
7373
)
7474
assert_matches_type(ImagesResponse, image, path=["response"])
@@ -77,9 +77,9 @@ def test_method_edit(self, client: Dedalus) -> None:
7777
@parametrize
7878
def test_method_edit_with_all_params(self, client: Dedalus) -> None:
7979
image = client.images.edit(
80-
image=b"raw file contents",
80+
image=b"Example data",
8181
prompt="prompt",
82-
mask=b"raw file contents",
82+
mask=b"Example data",
8383
model="model",
8484
n=0,
8585
response_format="response_format",
@@ -92,7 +92,7 @@ def test_method_edit_with_all_params(self, client: Dedalus) -> None:
9292
@parametrize
9393
def test_raw_response_edit(self, client: Dedalus) -> None:
9494
response = client.images.with_raw_response.edit(
95-
image=b"raw file contents",
95+
image=b"Example data",
9696
prompt="prompt",
9797
)
9898

@@ -105,7 +105,7 @@ def test_raw_response_edit(self, client: Dedalus) -> None:
105105
@parametrize
106106
def test_streaming_response_edit(self, client: Dedalus) -> None:
107107
with client.images.with_streaming_response.edit(
108-
image=b"raw file contents",
108+
image=b"Example data",
109109
prompt="prompt",
110110
) as response:
111111
assert not response.is_closed
@@ -181,15 +181,15 @@ class TestAsyncImages:
181181
@parametrize
182182
async def test_method_create_variation(self, async_client: AsyncDedalus) -> None:
183183
image = await async_client.images.create_variation(
184-
image=b"raw file contents",
184+
image=b"Example data",
185185
)
186186
assert_matches_type(ImagesResponse, image, path=["response"])
187187

188188
@pytest.mark.skip(reason="Mock server tests are disabled")
189189
@parametrize
190190
async def test_method_create_variation_with_all_params(self, async_client: AsyncDedalus) -> None:
191191
image = await async_client.images.create_variation(
192-
image=b"raw file contents",
192+
image=b"Example data",
193193
model="model",
194194
n=0,
195195
response_format="response_format",
@@ -202,7 +202,7 @@ async def test_method_create_variation_with_all_params(self, async_client: Async
202202
@parametrize
203203
async def test_raw_response_create_variation(self, async_client: AsyncDedalus) -> None:
204204
response = await async_client.images.with_raw_response.create_variation(
205-
image=b"raw file contents",
205+
image=b"Example data",
206206
)
207207

208208
assert response.is_closed is True
@@ -214,7 +214,7 @@ async def test_raw_response_create_variation(self, async_client: AsyncDedalus) -
214214
@parametrize
215215
async def test_streaming_response_create_variation(self, async_client: AsyncDedalus) -> None:
216216
async with async_client.images.with_streaming_response.create_variation(
217-
image=b"raw file contents",
217+
image=b"Example data",
218218
) as response:
219219
assert not response.is_closed
220220
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -228,7 +228,7 @@ async def test_streaming_response_create_variation(self, async_client: AsyncDeda
228228
@parametrize
229229
async def test_method_edit(self, async_client: AsyncDedalus) -> None:
230230
image = await async_client.images.edit(
231-
image=b"raw file contents",
231+
image=b"Example data",
232232
prompt="prompt",
233233
)
234234
assert_matches_type(ImagesResponse, image, path=["response"])
@@ -237,9 +237,9 @@ async def test_method_edit(self, async_client: AsyncDedalus) -> None:
237237
@parametrize
238238
async def test_method_edit_with_all_params(self, async_client: AsyncDedalus) -> None:
239239
image = await async_client.images.edit(
240-
image=b"raw file contents",
240+
image=b"Example data",
241241
prompt="prompt",
242-
mask=b"raw file contents",
242+
mask=b"Example data",
243243
model="model",
244244
n=0,
245245
response_format="response_format",
@@ -252,7 +252,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncDedalus) ->
252252
@parametrize
253253
async def test_raw_response_edit(self, async_client: AsyncDedalus) -> None:
254254
response = await async_client.images.with_raw_response.edit(
255-
image=b"raw file contents",
255+
image=b"Example data",
256256
prompt="prompt",
257257
)
258258

@@ -265,7 +265,7 @@ async def test_raw_response_edit(self, async_client: AsyncDedalus) -> None:
265265
@parametrize
266266
async def test_streaming_response_edit(self, async_client: AsyncDedalus) -> None:
267267
async with async_client.images.with_streaming_response.edit(
268-
image=b"raw file contents",
268+
image=b"Example data",
269269
prompt="prompt",
270270
) as response:
271271
assert not response.is_closed

0 commit comments

Comments
 (0)