This commit is contained in:
43
fixtures/contract/config_pages.json
Normal file
43
fixtures/contract/config_pages.json
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"id": "config_pages",
|
||||
"description": "Tests page extraction and page marker configuration",
|
||||
"tags": [
|
||||
"contract",
|
||||
"config"
|
||||
],
|
||||
"call": "extract_file_sync",
|
||||
"input": {
|
||||
"path": "pdf/fake_memo.pdf",
|
||||
"config": {
|
||||
"pages": {
|
||||
"extract_pages": true,
|
||||
"insert_page_markers": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "equals",
|
||||
"field": "mime_type",
|
||||
"value": "application/pdf"
|
||||
},
|
||||
{
|
||||
"type": "min_length",
|
||||
"field": "content",
|
||||
"value": 10
|
||||
},
|
||||
{
|
||||
"type": "contains_any",
|
||||
"field": "content",
|
||||
"values": [
|
||||
"PAGE"
|
||||
]
|
||||
}
|
||||
],
|
||||
"skip": {
|
||||
"languages": [
|
||||
"wasm"
|
||||
],
|
||||
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user