Skip to content

test: add knowledge_graph metadata coverage - #913

Merged
igorls merged 2 commits into
MemPalace:developfrom
fatkobra:test/knowledge-graph-metadata
Aug 18, 2026
Merged

test: add knowledge_graph metadata coverage#913
igorls merged 2 commits into
MemPalace:developfrom
fatkobra:test/knowledge-graph-metadata

Conversation

@fatkobra

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds focused tests for metadata and connection lifecycle behavior in mempalace/knowledge_graph.py.

Covered:

  • entity properties persistence
  • triple confidence, source_closet, and source_file persistence
  • query_entity() exposure of confidence and source_closet
  • close() + lazy reconnect behavior
  • stats()["relationship_types"]

How to test

Validation:

  • ruff check tests/test_knowledge_graph_metadata.py
  • python -m pytest tests/test_knowledge_graph_metadata.py -v
  • python -m pytest tests/test_knowledge_graph.py tests/test_knowledge_graph_extra.py tests/test_knowledge_graph_metadata.py -v
  • python -m pytest tests/ -v

No production code changes.

Checklist

  • Tests pass (python -m pytest tests/ -v)
  • No hardcoded paths
  • Linter passes (ruff check .)

@igorls igorls added enhancement New feature or request area/kg Knowledge graph labels Apr 15, 2026
@igorls
igorls merged commit a3e3444 into MemPalace:develop Aug 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/kg Knowledge graph enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants