mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-09-08 18:57:58 +00:00
11 lines
332 B
Python
11 lines
332 B
Python
from whoosh_compat import FieldKind
|
|
|
|
from documents.search._fields import PUBLIC_FIELDS
|
|
|
|
|
|
class TestPublicFields:
|
|
def test_json_fields_have_subpaths(self) -> None:
|
|
for field in PUBLIC_FIELDS:
|
|
if field.kind is FieldKind.JSON:
|
|
assert field.subpaths, f"{field.name} is JSON but has no subpaths"
|