Coverage for node / src / stigmem_node / routes / facts / __init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-25 01:49 +0000

1"""Fact assertion and query routes — Spec-03-HTTP-API and Spec-01-Fact-Model.""" 

2 

3from __future__ import annotations 

4 

5# Re-exported binding used by tests that monkey-patch ``routes.facts._settings``. 

6from ...settings import settings as _settings # noqa: F401 

7from .assertion import assert_fact # noqa: F401 

8from .cid import _CidVerifyResponse, verify_cid # noqa: F401 

9from .common import ( # noqa: F401 

10 _SYSTEM_RELATION_PREFIX, 

11 _embed_fact_background, 

12 _encode_v, 

13 _get_tombstone_filter, 

14 _is_valid_entity_uri, 

15 _record_contradictions, 

16 _validate_relation, 

17 logger, 

18 router, 

19) 

20from .provenance import get_provenance # noqa: F401 

21from .query import _validate_as_of, query_facts # noqa: F401 

22from .single import get_fact # noqa: F401 

23 

24__all__ = [ 

25 "_CidVerifyResponse", 

26 "_SYSTEM_RELATION_PREFIX", 

27 "_embed_fact_background", 

28 "_encode_v", 

29 "_get_tombstone_filter", 

30 "_is_valid_entity_uri", 

31 "_record_contradictions", 

32 "_settings", 

33 "_validate_as_of", 

34 "_validate_relation", 

35 "assert_fact", 

36 "get_fact", 

37 "get_provenance", 

38 "logger", 

39 "query_facts", 

40 "router", 

41 "verify_cid", 

42]