Skip to content

test: add palace_graph ranking and limits coverage - #916

Merged
igorls merged 1 commit into
MemPalace:developfrom
fatkobra:test/palace-graph-limits
Aug 18, 2026
Merged

test: add palace_graph ranking and limits coverage#916
igorls merged 1 commit into
MemPalace:developfrom
fatkobra:test/palace-graph-limits

Conversation

@fatkobra

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds focused tests for ranking and limit behavior in mempalace/palace_graph.py.

Covered:

  • find_tunnels() sorting by descending count
  • find_tunnels() result cap at 50
  • graph_stats()["rooms_per_wing"]
  • graph_stats()["top_tunnels"] only including multi-wing rooms and capping at 10

How to test

Validation:

  • ruff format tests/test_palace_graph_limits.py
  • ruff check tests/test_palace_graph_limits.py
  • ruff format --check tests/test_palace_graph_limits.py
  • python -m pytest tests/test_palace_graph_limits.py -v
  • python -m pytest tests/test_palace_graph.py tests/test_palace_graph_limits.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 the enhancement New feature or request label Apr 15, 2026
@igorls
igorls merged commit 9d79169 into MemPalace:develop Aug 18, 2026
6 checks passed
igorls added a commit that referenced this pull request Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants