This commit is contained in:
48
fixtures/contract/config_quality_enabled.json
Normal file
48
fixtures/contract/config_quality_enabled.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user