Skip to content

test: cover retrieval metadata coercion#176

Draft
vku2018 wants to merge 1 commit into
KrakenNet:mainfrom
vku2018:test/retrieval-coerce-metadata
Draft

test: cover retrieval metadata coercion#176
vku2018 wants to merge 1 commit into
KrakenNet:mainfrom
vku2018:test/retrieval-coerce-metadata

Conversation

@vku2018

@vku2018 vku2018 commented Jul 3, 2026

Copy link
Copy Markdown

Summary

  • add direct unit coverage for stargraph.nodes.retrieval._coerce_metadata
  • assert scalar metadata values, including booleans, are preserved
  • assert dict/list/None values are dropped, empty input stays empty, and mixed input keeps only scalar entries
  • no production code changes

Validation

  • uv run pytest tests/unit/test_retrieval_coerce_metadata.py -o addopts="" -q
  • uv run ruff check tests/unit/test_retrieval_coerce_metadata.py
  • uv run pyright tests/unit/test_retrieval_coerce_metadata.py
  • git diff --check

Closes #139

@github-actions github-actions Bot added the community Opened by a community contributor label Jul 3, 2026
@se-jo-ma se-jo-ma self-requested a review July 7, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Opened by a community contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a unit test for the pure helper _coerce_metadata in nodes/retrieval.py

2 participants