test: cover repeated LLM span follow-ups - #90
Conversation
Signed-off-by: Emre K <110906681+kocaemre@users.noreply.github.com>
adaamko
left a comment
There was a problem hiding this comment.
Thanks for coming back with the follow-up — this is exactly the additive part from #87 that didn't land with #86, and it's green on top of current main (182 passed). The two new _to_spans tests pin the remaining #85 acceptance items (low-confidence reservation, single-item first-match fallback), and the response-format tests give _response_format_block its first coverage.
Two cosmetic notes, neither blocking: test_simple_response_format_requests_answer_order passes cache_file="unused" where the sibling test uses the cache_file fixture (harmless — nothing is written unless set() is called — but worth aligning in a follow-up); and since this changes the prompt text in llm.py (and so the generic judge's cache key), I'm squashing it as fix: rather than test:. Merging.
Summary
Related issue
Follow-up to #85 after #87 was closed as superseded by #86.
Type of change
Testing
ruff format --check lettucedetect/ lettucedetect_api/ tests/ruff check lettucedetect/ lettucedetect_api/ tests/ --extend-exclude lettucedetect/integrations/python -m pytestpython -m pytest tests/test_llm_detector_pytest.py -qChecklist
Rights & sign-off (required)
distributed under the repository's MIT license
(see CONTRIBUTING).