test: regression coverage for providers, search, portal, and workflows - #120
Draft
cursor[bot] wants to merge 1 commit into
Draft
test: regression coverage for providers, search, portal, and workflows#120cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
…flows Cover litigation provider factory selection and OpenRouter config, web search backend routing, portal generate post-processing, transcript export helpers, prompt assembly hearing types, and research report HTML wrapping to reduce regression risk on core courtroom flows. Co-authored-by: exios4 <exios4@protonmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Risky behavior now covered
get_provider): ollama/lm_studio/openrouter selection, missing API key guard, OpenRouter attribution headers and extra_body configsearch_web): Tavily vs DuckDuckGo backend selection and domain attribution parsingTest files added/updated
tests/test_litigation_providers.py(new, 8 tests)tests/test_workflows_search.py(new, 6 tests)tests/test_portal_generate.py(new, 3 tests)tests/test_research_report.py(new, 5 tests)tests/test_litigation_run.py(+7 tests)tests/test_export_transcript.py(+4 tests)tests/test_prompt_assembler.py(+4 tests)Why these tests materially reduce regression risk
These paths sit on core courtroom flows with large blast radius: LLM provider selection feeds both litigation deliberation and the research-report pipeline; portal post-processing and export determine whether transcripts render correctly; and transcript save/case-number logic prevents duplicate Case Nos and broken paths. All 98 tests pass (
python3 -m pytest tests/).Repos skipped