test: expand test suite from 21 to 218 tests covering all modules - #149
test: expand test suite from 21 to 218 tests covering all modules#149s0j0hn wants to merge 22 commits into
Conversation
|
Do what you want with this @bensig @milla-jovovich |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… assertions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…content Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n, stats Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…de filtering Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ndancy - Extract _make_collection helper in test_palace_graph (removes 4 inline ChromaDB setups) - Convert MCP server patching to a pytest fixture with yield (safer cleanup) - Replace magic 19 with len(mcp_server.TOOLS) - Prefix local write_file helpers with _ (not importable from conftest without __init__.py) - Fix test_disambiguate_concept_context to actually test concept path (was duplicate of person test) - Remove redundant assertion in test_layers (len > 0 implied by string-contains check) - Remove unnecessary what-not-why comments across 5 files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
fff5b58 to
600a8b5
Compare
…can filtering Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…learn, mock wikipedia Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…k, graph tools Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
I opened #157 earlier with a smaller focused test file for If either approach ends up getting merged, happy to rebase the other on top or drop the overlapping file so there's no conflict. |
Main had independently expanded the test suite (commits 03e9b57, e24d8ca), often producing strict supersets of the tests on this branch. Resolution strategy: - test_convo_miner.py: kept ours (11 tests vs main's 1) - test_spellcheck.py: merged — kept our 49 _should_skip/user_text tests, appended main's 8 unique tests for _get_system_words, spellcheck_transcript, and spellcheck_transcript_line - test_normalize, test_palace_graph, test_searcher, test_layers, test_entity_detector, test_entity_registry, test_general_extractor, test_mcp_server, test_dialect: kept main's versions (supersets or more comprehensive mocking) Stripped unused pytest imports (ruff) and applied ruff format to conftest.py and test_spellcheck.py. 582 tests passing, ruff clean.
Missed during the origin/main merge resolution — ruff caught it post-commit. No behavior change.
|
Thanks for the test expansion work. Coverage was bumped to 85% in #281 (tmuskal) which overlaps significantly. If there are tests here that aren't covered, a focused follow-up would be great. |
Summary
tmp_dir,palace_path,populated_palace,config,kg,seeded_kgfixturesBefore: 4 test files, 21 tests
After: 17 test files, 218 tests — all passing in ~8s
Test plan
pytest tests/ -v— 218 passed, 0 failuresruff check tests/— all checks passedruff format --check tests/— all files formatted🤖 Generated with Claude Code