Skip to content

Commit

Permalink
Merge pull request #5530 from irgolic/fix-testandscore-test-mock
Browse files Browse the repository at this point in the history
test_owtestandscore: Fix testandscore test mock
  • Loading branch information
janezd authored Jul 16, 2021
2 parents a780239 + 591d745 commit f9d78d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/evaluate/tests/test_owtestandscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def test_comparison_binary_score(self):
w = self.widget
self._set_three_majorities()
self._set_comparison_score("F1")
f1mock = Mock(wraps=scoring.F1)
f1mock = Mock(wraps=scoring.F1.compute_score)

iris = Table("iris")
with patch.object(scoring.F1, "compute_score", f1mock):
Expand Down

0 comments on commit f9d78d6

Please sign in to comment.