Skip to content

Commit 411f21a

Browse files
committed
fix: missing coverage
1 parent e2dbe76 commit 411f21a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,13 @@ def test_check_result_repr():
325325
assert "tags={'crud:read'}" in repr_str
326326
assert "resource_type='User'" in repr_str
327327
assert result.description == "Very long description"
328+
329+
# Test without title to cover the missing branch
330+
result = CheckResult(
331+
status=Status.SUCCESS,
332+
reason="Success without name",
333+
)
334+
repr_str = repr(result)
335+
assert "title=" not in repr_str
336+
assert "reason='Success without name'" in repr_str
337+
assert "Status.SUCCESS" in repr_str

0 commit comments

Comments
 (0)