We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dbe76 commit 411f21aCopy full SHA for 411f21a
tests/test_utils.py
@@ -325,3 +325,13 @@ def test_check_result_repr():
325
assert "tags={'crud:read'}" in repr_str
326
assert "resource_type='User'" in repr_str
327
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