This commit is contained in:
17
fixtures/error/error_empty_bytes.json
Normal file
17
fixtures/error/error_empty_bytes.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "error_empty_bytes",
|
||||
"category": "error",
|
||||
"description": "Graceful handling of empty bytes (should not error)",
|
||||
"tags": ["error", "input", "edge-case"],
|
||||
"call": "extract_bytes_sync",
|
||||
"input": {
|
||||
"data": "text/empty.txt",
|
||||
"mime_type": "text/plain",
|
||||
"config": {}
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "not_error"
|
||||
}
|
||||
]
|
||||
}
|
||||
17
fixtures/error/error_empty_mime.json
Normal file
17
fixtures/error/error_empty_mime.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "error_empty_mime",
|
||||
"category": "error",
|
||||
"description": "Error when extracting with empty MIME type",
|
||||
"tags": ["error", "input", "mime"],
|
||||
"call": "extract_bytes_sync",
|
||||
"input": {
|
||||
"data": "text/plain.txt",
|
||||
"mime_type": "",
|
||||
"config": {}
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "error"
|
||||
}
|
||||
]
|
||||
}
|
||||
13
fixtures/error/error_extract_bytes_conflicting_ocr.json
Normal file
13
fixtures/error/error_extract_bytes_conflicting_ocr.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"id": "error_extract_bytes_conflicting_ocr",
|
||||
"category": "error",
|
||||
"description": "extract_bytes force+disable OCR",
|
||||
"tags": ["error", "validation"],
|
||||
"call": "extract_bytes_sync",
|
||||
"input": {
|
||||
"data": "text/fake_text.txt",
|
||||
"mime_type": "text/plain",
|
||||
"config": { "force_ocr": true, "disable_ocr": true }
|
||||
},
|
||||
"assertions": [{ "type": "error" }]
|
||||
}
|
||||
17
fixtures/error/error_invalid_mime_format.json
Normal file
17
fixtures/error/error_invalid_mime_format.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "error_invalid_mime_format",
|
||||
"category": "error",
|
||||
"description": "Error when extracting with invalid MIME type format",
|
||||
"tags": ["error", "input", "mime"],
|
||||
"call": "extract_bytes_sync",
|
||||
"input": {
|
||||
"data": "text/plain.txt",
|
||||
"mime_type": "not-a-mime",
|
||||
"config": {}
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "error"
|
||||
}
|
||||
]
|
||||
}
|
||||
17
fixtures/error/error_unsupported_mime.json
Normal file
17
fixtures/error/error_unsupported_mime.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"id": "error_unsupported_mime",
|
||||
"category": "error",
|
||||
"description": "Error when extracting with unsupported MIME type",
|
||||
"tags": ["error", "input", "mime"],
|
||||
"call": "extract_bytes_sync",
|
||||
"input": {
|
||||
"data": "text/plain.txt",
|
||||
"mime_type": "application/x-nonexistent",
|
||||
"config": {}
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "error"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user