ci: add strict-no-cover to detect unnecessary coverage pragmas (#1897)
This commit is contained in:
parent
3cfdea0e97
commit
a7ddfdae07
1 changed files with 355 additions and 358 deletions
|
|
@ -391,8 +391,7 @@ async def test_create_message_tool_result_validation():
|
|||
|
||||
# Case 8: empty messages list - skips validation entirely
|
||||
# Covers the `if messages:` branch (line 280->302)
|
||||
# TODO(Marcelo): Drop the pragma once https://github.com/coveragepy/coveragepy/issues/1987 is fixed.
|
||||
with anyio.move_on_after(0.01): # pragma: no cover
|
||||
with anyio.move_on_after(0.01): # pragma: no branch
|
||||
await session.create_message(messages=[], max_tokens=100)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue