Skip to content

Commit 82cf257

Browse files
acn-ericlawclaude
andcommitted
chore: split the exec_time composite assertion (Sonar S9073)
Eric's IDE review round, SonarQube for IDE finding in test_server.py: the composite 'is not None and >= 0' assertion split into two - a failure now names which half broke, and the second assert type-narrows exec_time. The sweep confirms no other composite assertions remain in the project. Gates: ruff clean, basedpyright 0 errors, tests 32/32. Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 6461520 commit 82cf257

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/test_server.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ async def test_rpc_success_with_exec_time(server_url: str):
9090
assert reply.get_status() == 200
9191
assert reply.body["body"] == {"a": 1}
9292
assert reply.sender == "unit.echo"
93-
assert reply.exec_time is not None and reply.exec_time >= 0
93+
assert reply.exec_time is not None
94+
assert reply.exec_time >= 0
9495

9596

9697
async def test_sync_handler_sees_trace_context(server_url: str):

0 commit comments

Comments
 (0)