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

Method test_add_rewrite

tests/operators/test_result.py:156–161  ·  view source on GitHub ↗

Test add_rewrite.

(self, result)

Source from the content-addressed store, hash-verified

154 assert len(result.filter_decisions) == 2
155
156 def test_add_rewrite(self, result):
157 """Test add_rewrite."""
158 result.add_rewrite(qa_idx=0, new_answer="New A", message="Rewritten")
159
160 assert len(result.rewrite_decisions) == 1
161 assert result.rewrite_decisions[0].new_answer == "New A"
162
163 def test_add_rewrite_with_question(self, result):
164 """Test add_rewrite with new question."""

Callers

nothing calls this directly

Calls 1

add_rewriteMethod · 0.80

Tested by

no test coverage detected