Files
fil/fixtures/contract/config_quality_enabled.json

49 lines
946 B
JSON
Raw Normal View History

2026-06-01 23:40:55 +02:00
{
"id": "config_quality_enabled",
"description": "Tests quality scoring produces a score value in [0.0, 1.0]",
"tags": [
"contract",
"config",
"quality"
],
"call": "extract_file_sync",
"input": {
"path": "pdf/fake_memo.pdf",
"config": {
"enable_quality_processing": true
}
},
"assertions": [
{
"type": "equals",
"field": "mime_type",
"value": "application/pdf"
},
{
"type": "min_length",
"field": "content",
"value": 10
},
{
"type": "not_empty",
"field": "quality_score"
},
{
"type": "greater_than_or_equal",
"field": "quality_score",
"value": 0.0
},
{
"type": "less_than_or_equal",
"field": "quality_score",
"value": 1.0
}
],
"skip": {
"languages": [
"wasm"
],
"reason": "WASM cannot access filesystem; use extractBytes with file content instead"
}
}