test: massive coverage expansion — 15 new test modules + assistant tool fixes + orthogonal testing

- 10 translate plugin test files (100% coverage on 12 modules)
- assistant/handler tools: 85+ tests covering dispatch, registry, resolvers, routes, llm_planner, 13 tool handlers
- clean release: artifact_catalog_loader, mappers, approval, publication tests
- API routes: translate_helpers, validation_service extensions, datasets to 100%
- notifications: providers/service tests
- services: profile_preference_service
- docs/orthogonal-test-report.md — full speckit.tests audit
- Fixes: 3 git_base async mock failures, 4 assistant handler permission-check patches
- .gitignore: coverage artifacts
This commit is contained in:
2026-06-15 15:38:59 +03:00
parent 6ba381676a
commit f75c15dbc6
67 changed files with 10769 additions and 147 deletions

View File

@@ -137,7 +137,8 @@ class TestDetectJinjaSpans:
"""Line 57: whitespace-only input returns sql span."""
from src.services.sql_table_extractor import detect_jinja_spans
result = detect_jinja_spans(" ")
assert result == [("sql", "")]
# detect_jinja_spans preserves the input text including whitespace
assert result == [("sql", " ")]
def test_overlapping_jinja_spans(self):
"""Lines 71-74: adjacent Jinja expressions are merged."""