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

Method test_empty_message

tests/operators/test_result.py:324–328  ·  view source on GitHub ↗

Test rewrite decision with empty message.

(self)

Source from the content-addressed store, hash-verified

322 assert result.filter_decisions[0].reason == ""
323
324 def test_empty_message(self):
325 """Test rewrite decision with empty message."""
326 result = Result(item_idx=0)
327 result.add_rewrite(qa_idx=0, new_answer="A", message="")
328 assert result.rewrite_decisions[0].message == ""
329
330 def test_both_new_values_none(self):
331 """Test rewrite with both new_question and new_answer None."""

Callers

nothing calls this directly

Calls 2

add_rewriteMethod · 0.95
ResultClass · 0.90

Tested by

no test coverage detected