Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Dec 2, 2024
1 parent 293cce0 commit d50fad9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/trace/test_evaluations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,11 +1021,11 @@ def my_second_scorer(text, output, model_output):

ds = [{"text": "hello"}]

with pytest.raises(ValueError, match="Both 'output' and 'model_output'"):
with pytest.raises(ValueError, match="Both `output` and `model_output`"):
scorer = MyScorer()

with pytest.raises(ValueError, match="Both 'output' and 'model_output'"):
with pytest.raises(ValueError, match="Both `output` and `model_output`"):
evaluation = weave.Evaluation(dataset=ds, scorers=[MyScorer()])

with pytest.raises(ValueError, match="Both 'output' and 'model_output'"):
with pytest.raises(ValueError, match="Both `output` and `model_output`"):
evaluation = weave.Evaluation(dataset=ds, scorers=[my_second_scorer])

0 comments on commit d50fad9

Please sign in to comment.