Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gbg141 committed Dec 4, 2024
1 parent d208ddb commit 088e1c8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test/evaluator/test_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@

from topobenchmark.evaluator import TBEvaluator

def test_evaluator():
""" Setup the test."""
evaluator_multilable = TBEvaluator(task="multilabel classification")
evaluator_regression = TBEvaluator(task="regression")
with pytest.raises(ValueError):
TBEvaluator(task="wrong")
repr = evaluator_multilable.__repr__()
class TestTBEvaluator:
""" Test the TBXEvaluator class."""

def setup_method(self):
""" Setup the test."""
self.evaluator_multilable = TBEvaluator(task="multilabel classification")
self.evaluator_regression = TBEvaluator(task="regression")
with pytest.raises(ValueError):
TBEvaluator(task="wrong")
repr = self.evaluator_multilable.__repr__()

0 comments on commit 088e1c8

Please sign in to comment.