Test add_rewrite.
(self, result)
| 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.""" |
nothing calls this directly
no test coverage detected