Skip to content

Commit c15515a

Browse files
chore: update placeholder string
1 parent c4ae12c commit c15515a

2 files changed

Lines changed: 26 additions & 26 deletions

File tree

tests/api_resources/test_classify.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class TestClassify:
2222
def test_method_batch(self, client: Docstrange) -> None:
2323
classify = client.classify.batch(
2424
categories='[{"name": "Invoice"}, {"name": "Contract"}, {"name": "Receipt"}]',
25-
files=[b"raw file contents"],
25+
files=[b"Example data"],
2626
)
2727
assert_matches_type(BatchClassifyResponse, classify, path=["response"])
2828

@@ -31,7 +31,7 @@ def test_method_batch(self, client: Docstrange) -> None:
3131
def test_raw_response_batch(self, client: Docstrange) -> None:
3232
response = client.classify.with_raw_response.batch(
3333
categories='[{"name": "Invoice"}, {"name": "Contract"}, {"name": "Receipt"}]',
34-
files=[b"raw file contents"],
34+
files=[b"Example data"],
3535
)
3636

3737
assert response.is_closed is True
@@ -44,7 +44,7 @@ def test_raw_response_batch(self, client: Docstrange) -> None:
4444
def test_streaming_response_batch(self, client: Docstrange) -> None:
4545
with client.classify.with_streaming_response.batch(
4646
categories='[{"name": "Invoice"}, {"name": "Contract"}, {"name": "Receipt"}]',
47-
files=[b"raw file contents"],
47+
files=[b"Example data"],
4848
) as response:
4949
assert not response.is_closed
5050
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -59,7 +59,7 @@ def test_streaming_response_batch(self, client: Docstrange) -> None:
5959
def test_method_sync(self, client: Docstrange) -> None:
6060
classify = client.classify.sync(
6161
categories='[{"name": "Invoice", "description": "Bills and invoices"}, {"name": "Contract", "description": "Legal agreements"}]',
62-
file=b"raw file contents",
62+
file=b"Example data",
6363
)
6464
assert_matches_type(ClassifyResponse, classify, path=["response"])
6565

@@ -68,7 +68,7 @@ def test_method_sync(self, client: Docstrange) -> None:
6868
def test_raw_response_sync(self, client: Docstrange) -> None:
6969
response = client.classify.with_raw_response.sync(
7070
categories='[{"name": "Invoice", "description": "Bills and invoices"}, {"name": "Contract", "description": "Legal agreements"}]',
71-
file=b"raw file contents",
71+
file=b"Example data",
7272
)
7373

7474
assert response.is_closed is True
@@ -81,7 +81,7 @@ def test_raw_response_sync(self, client: Docstrange) -> None:
8181
def test_streaming_response_sync(self, client: Docstrange) -> None:
8282
with client.classify.with_streaming_response.sync(
8383
categories='[{"name": "Invoice", "description": "Bills and invoices"}, {"name": "Contract", "description": "Legal agreements"}]',
84-
file=b"raw file contents",
84+
file=b"Example data",
8585
) as response:
8686
assert not response.is_closed
8787
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -102,7 +102,7 @@ class TestAsyncClassify:
102102
async def test_method_batch(self, async_client: AsyncDocstrange) -> None:
103103
classify = await async_client.classify.batch(
104104
categories='[{"name": "Invoice"}, {"name": "Contract"}, {"name": "Receipt"}]',
105-
files=[b"raw file contents"],
105+
files=[b"Example data"],
106106
)
107107
assert_matches_type(BatchClassifyResponse, classify, path=["response"])
108108

@@ -111,7 +111,7 @@ async def test_method_batch(self, async_client: AsyncDocstrange) -> None:
111111
async def test_raw_response_batch(self, async_client: AsyncDocstrange) -> None:
112112
response = await async_client.classify.with_raw_response.batch(
113113
categories='[{"name": "Invoice"}, {"name": "Contract"}, {"name": "Receipt"}]',
114-
files=[b"raw file contents"],
114+
files=[b"Example data"],
115115
)
116116

117117
assert response.is_closed is True
@@ -124,7 +124,7 @@ async def test_raw_response_batch(self, async_client: AsyncDocstrange) -> None:
124124
async def test_streaming_response_batch(self, async_client: AsyncDocstrange) -> None:
125125
async with async_client.classify.with_streaming_response.batch(
126126
categories='[{"name": "Invoice"}, {"name": "Contract"}, {"name": "Receipt"}]',
127-
files=[b"raw file contents"],
127+
files=[b"Example data"],
128128
) as response:
129129
assert not response.is_closed
130130
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -139,7 +139,7 @@ async def test_streaming_response_batch(self, async_client: AsyncDocstrange) ->
139139
async def test_method_sync(self, async_client: AsyncDocstrange) -> None:
140140
classify = await async_client.classify.sync(
141141
categories='[{"name": "Invoice", "description": "Bills and invoices"}, {"name": "Contract", "description": "Legal agreements"}]',
142-
file=b"raw file contents",
142+
file=b"Example data",
143143
)
144144
assert_matches_type(ClassifyResponse, classify, path=["response"])
145145

@@ -148,7 +148,7 @@ async def test_method_sync(self, async_client: AsyncDocstrange) -> None:
148148
async def test_raw_response_sync(self, async_client: AsyncDocstrange) -> None:
149149
response = await async_client.classify.with_raw_response.sync(
150150
categories='[{"name": "Invoice", "description": "Bills and invoices"}, {"name": "Contract", "description": "Legal agreements"}]',
151-
file=b"raw file contents",
151+
file=b"Example data",
152152
)
153153

154154
assert response.is_closed is True
@@ -161,7 +161,7 @@ async def test_raw_response_sync(self, async_client: AsyncDocstrange) -> None:
161161
async def test_streaming_response_sync(self, async_client: AsyncDocstrange) -> None:
162162
async with async_client.classify.with_streaming_response.sync(
163163
categories='[{"name": "Invoice", "description": "Bills and invoices"}, {"name": "Contract", "description": "Legal agreements"}]',
164-
file=b"raw file contents",
164+
file=b"Example data",
165165
) as response:
166166
assert not response.is_closed
167167
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

tests/api_resources/test_extract.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_method_async_with_all_params(self, client: Docstrange) -> None:
3535
output_format="markdown",
3636
csv_options="",
3737
custom_instructions="",
38-
file=b"raw file contents",
38+
file=b"Example data",
3939
file_base64="",
4040
file_url="",
4141
include_metadata="",
@@ -74,7 +74,7 @@ def test_streaming_response_async(self, client: Docstrange) -> None:
7474
@parametrize
7575
def test_method_batch(self, client: Docstrange) -> None:
7676
extract = client.extract.batch(
77-
files=[b"raw file contents"],
77+
files=[b"Example data"],
7878
output_format="markdown",
7979
)
8080
assert_matches_type(BatchExtractResponse, extract, path=["response"])
@@ -83,7 +83,7 @@ def test_method_batch(self, client: Docstrange) -> None:
8383
@parametrize
8484
def test_method_batch_with_all_params(self, client: Docstrange) -> None:
8585
extract = client.extract.batch(
86-
files=[b"raw file contents"],
86+
files=[b"Example data"],
8787
output_format="markdown",
8888
csv_options="csv_options",
8989
custom_instructions="custom_instructions",
@@ -97,7 +97,7 @@ def test_method_batch_with_all_params(self, client: Docstrange) -> None:
9797
@parametrize
9898
def test_raw_response_batch(self, client: Docstrange) -> None:
9999
response = client.extract.with_raw_response.batch(
100-
files=[b"raw file contents"],
100+
files=[b"Example data"],
101101
output_format="markdown",
102102
)
103103

@@ -110,7 +110,7 @@ def test_raw_response_batch(self, client: Docstrange) -> None:
110110
@parametrize
111111
def test_streaming_response_batch(self, client: Docstrange) -> None:
112112
with client.extract.with_streaming_response.batch(
113-
files=[b"raw file contents"],
113+
files=[b"Example data"],
114114
output_format="markdown",
115115
) as response:
116116
assert not response.is_closed
@@ -137,7 +137,7 @@ def test_method_stream_with_all_params(self, client: Docstrange) -> None:
137137
csv_options="",
138138
custom_instructions="",
139139
enable_streaming=True,
140-
file=b"raw file contents",
140+
file=b"Example data",
141141
file_base64="",
142142
file_url="",
143143
include_metadata="",
@@ -186,7 +186,7 @@ def test_method_sync_with_all_params(self, client: Docstrange) -> None:
186186
output_format="markdown",
187187
csv_options="",
188188
custom_instructions="",
189-
file=b"raw file contents",
189+
file=b"Example data",
190190
file_base64="",
191191
file_url="",
192192
include_metadata="",
@@ -242,7 +242,7 @@ async def test_method_async_with_all_params(self, async_client: AsyncDocstrange)
242242
output_format="markdown",
243243
csv_options="",
244244
custom_instructions="",
245-
file=b"raw file contents",
245+
file=b"Example data",
246246
file_base64="",
247247
file_url="",
248248
include_metadata="",
@@ -281,7 +281,7 @@ async def test_streaming_response_async(self, async_client: AsyncDocstrange) ->
281281
@parametrize
282282
async def test_method_batch(self, async_client: AsyncDocstrange) -> None:
283283
extract = await async_client.extract.batch(
284-
files=[b"raw file contents"],
284+
files=[b"Example data"],
285285
output_format="markdown",
286286
)
287287
assert_matches_type(BatchExtractResponse, extract, path=["response"])
@@ -290,7 +290,7 @@ async def test_method_batch(self, async_client: AsyncDocstrange) -> None:
290290
@parametrize
291291
async def test_method_batch_with_all_params(self, async_client: AsyncDocstrange) -> None:
292292
extract = await async_client.extract.batch(
293-
files=[b"raw file contents"],
293+
files=[b"Example data"],
294294
output_format="markdown",
295295
csv_options="csv_options",
296296
custom_instructions="custom_instructions",
@@ -304,7 +304,7 @@ async def test_method_batch_with_all_params(self, async_client: AsyncDocstrange)
304304
@parametrize
305305
async def test_raw_response_batch(self, async_client: AsyncDocstrange) -> None:
306306
response = await async_client.extract.with_raw_response.batch(
307-
files=[b"raw file contents"],
307+
files=[b"Example data"],
308308
output_format="markdown",
309309
)
310310

@@ -317,7 +317,7 @@ async def test_raw_response_batch(self, async_client: AsyncDocstrange) -> None:
317317
@parametrize
318318
async def test_streaming_response_batch(self, async_client: AsyncDocstrange) -> None:
319319
async with async_client.extract.with_streaming_response.batch(
320-
files=[b"raw file contents"],
320+
files=[b"Example data"],
321321
output_format="markdown",
322322
) as response:
323323
assert not response.is_closed
@@ -344,7 +344,7 @@ async def test_method_stream_with_all_params(self, async_client: AsyncDocstrange
344344
csv_options="",
345345
custom_instructions="",
346346
enable_streaming=True,
347-
file=b"raw file contents",
347+
file=b"Example data",
348348
file_base64="",
349349
file_url="",
350350
include_metadata="",
@@ -393,7 +393,7 @@ async def test_method_sync_with_all_params(self, async_client: AsyncDocstrange)
393393
output_format="markdown",
394394
csv_options="",
395395
custom_instructions="",
396-
file=b"raw file contents",
396+
file=b"Example data",
397397
file_base64="",
398398
file_url="",
399399
include_metadata="",

0 commit comments

Comments
 (0)