This commit is contained in:
30
fixtures/async/async_extract_bytes.json
Normal file
30
fixtures/async/async_extract_bytes.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"id": "async_extract_bytes",
|
||||
"category": "async",
|
||||
"description": "Async extract_bytes call on PDF document",
|
||||
"tags": ["async", "api", "extract_bytes"],
|
||||
"call": "extract_bytes",
|
||||
"skip": {
|
||||
"languages": ["wasm"],
|
||||
"reason": "WASM uses synchronous-only API; async extraction is not available on the wasm target"
|
||||
},
|
||||
"input": {
|
||||
"data": "pdf/fake_memo.pdf",
|
||||
"mime_type": "application/pdf"
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "not_error"
|
||||
},
|
||||
{
|
||||
"type": "equals",
|
||||
"field": "mime_type",
|
||||
"value": "application/pdf"
|
||||
},
|
||||
{
|
||||
"type": "min_length",
|
||||
"field": "content",
|
||||
"value": 50
|
||||
}
|
||||
]
|
||||
}
|
||||
9
fixtures/async/async_extract_bytes_empty_mime.json
Normal file
9
fixtures/async/async_extract_bytes_empty_mime.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"id": "async_extract_bytes_empty_mime",
|
||||
"category": "async",
|
||||
"description": "extract_bytes empty MIME async",
|
||||
"tags": ["async", "error"],
|
||||
"call": "extract_bytes",
|
||||
"input": { "data": "text/plain.txt", "mime_type": "", "config": {} },
|
||||
"assertions": [{ "type": "error" }]
|
||||
}
|
||||
9
fixtures/async/async_extract_bytes_invalid_mime.json
Normal file
9
fixtures/async/async_extract_bytes_invalid_mime.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"id": "async_extract_bytes_invalid_mime",
|
||||
"category": "async",
|
||||
"description": "extract_bytes unsupported MIME async",
|
||||
"tags": ["async", "error"],
|
||||
"call": "extract_bytes",
|
||||
"input": { "data": "text/plain.txt", "mime_type": "application/x-nonexistent", "config": {} },
|
||||
"assertions": [{ "type": "error" }]
|
||||
}
|
||||
Reference in New Issue
Block a user