[perplexity] test(mempalace): 22 unit tests for mempalace skill (#190) #207

Closed
perplexity wants to merge 1 commits from perplexity/mempalace-tests into main
Member

What does this PR do?

Adds tests/skills/test_mempalace.py22 unit tests for the mempalace skill introduced in PR #191.

Test coverage

Test class Tests What it covers
TestPalaceRoom 5 store/retrieve, defaults, summary format, dataclass isolation, timestamps
TestMempalace 7 room management, error paths, store/retrieve, render, to_dict, to_json
TestFactories 3 for_issue_analysis, for_health_check, for_code_review
TestAnalyseIssues 6 entry-point with sample data, coverage thresholds, edge cases

Design decisions

  • Import guard: Uses pytest.skip(allow_module_level=True) so tests are skipped gracefully if the mempalace skill isn't merged yet (PR #191). Once merged, tests run automatically.
  • Zero external dependencies: All tests are self-contained, no API calls or filesystem access.
  • Follows existing test conventions: Mirrors the structure in tests/skills/ (see test_memento_cards.py pattern).

Merge order

This PR should be merged after PR #191 (mempalace skill) lands. The import guard ensures CI won't fail before that happens.

Refs: #190, #191, #200

## What does this PR do? Adds `tests/skills/test_mempalace.py` — **22 unit tests** for the mempalace skill introduced in PR #191. ## Test coverage | Test class | Tests | What it covers | |---|---|---| | `TestPalaceRoom` | 5 | store/retrieve, defaults, summary format, dataclass isolation, timestamps | | `TestMempalace` | 7 | room management, error paths, store/retrieve, render, to_dict, to_json | | `TestFactories` | 3 | `for_issue_analysis`, `for_health_check`, `for_code_review` | | `TestAnalyseIssues` | 6 | entry-point with sample data, coverage thresholds, edge cases | ## Design decisions - **Import guard**: Uses `pytest.skip(allow_module_level=True)` so tests are skipped gracefully if the mempalace skill isn't merged yet (PR #191). Once merged, tests run automatically. - **Zero external dependencies**: All tests are self-contained, no API calls or filesystem access. - **Follows existing test conventions**: Mirrors the structure in `tests/skills/` (see `test_memento_cards.py` pattern). ## Merge order This PR should be merged **after** PR #191 (mempalace skill) lands. The import guard ensures CI won't fail before that happens. Refs: #190, #191, #200
perplexity added 1 commit 2026-04-07 14:15:18 +00:00
test(mempalace): add comprehensive unit tests for mempalace skill
All checks were successful
Forge CI / smoke-and-build (pull_request) Successful in 1m51s
fbff2a9356
22 tests covering PalaceRoom, Mempalace core, factory constructors, and analyse_issues entry-point. Import guard gracefully skips if skill not yet merged (PR #191).

Refs: #190, #191, #200
Owner

Closed. hermes-agent is now pure upstream. Sovereign work goes to timmy-config sidecar.

Closed. hermes-agent is now pure upstream. Sovereign work goes to timmy-config sidecar.
Timmy closed this pull request 2026-04-07 14:16:15 +00:00
All checks were successful
Forge CI / smoke-and-build (pull_request) Successful in 1m51s
Required
Details

Pull request closed

Sign in to join this conversation.