MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_empty_reason

Method test_empty_reason

tests/operators/test_result.py:318–322  ·  view source on GitHub ↗

Test filter decision with empty reason.

(self)

Source from the content-addressed store, hash-verified

316 """Edge case tests for Result."""
317
318 def test_empty_reason(self):
319 """Test filter decision with empty reason."""
320 result = Result(item_idx=0)
321 result.add_filter(qa_idx=0, rejected=True, reason="")
322 assert result.filter_decisions[0].reason == ""
323
324 def test_empty_message(self):
325 """Test rewrite decision with empty message."""

Callers

nothing calls this directly

Calls 2

add_filterMethod · 0.95
ResultClass · 0.90

Tested by

no test coverage detected