From 03493c4fb2ed20754170fd637d6d889af9870c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillermo=20Bern=C3=A1rdez?= Date: Wed, 4 Dec 2024 12:49:21 -0800 Subject: [PATCH] Check influence of .gitattributes --- .gitattributes | 1 - test/evaluator/test_TBEvaluator.py | 15 --------------- test/evaluator/test_evaluator.py | 12 ++++++++++++ 3 files changed, 12 insertions(+), 16 deletions(-) delete mode 100644 .gitattributes delete mode 100644 test/evaluator/test_TBEvaluator.py create mode 100644 test/evaluator/test_evaluator.py diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 9030923a..00000000 --- a/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -*.ipynb linguist-vendored \ No newline at end of file diff --git a/test/evaluator/test_TBEvaluator.py b/test/evaluator/test_TBEvaluator.py deleted file mode 100644 index 3396f8eb..00000000 --- a/test/evaluator/test_TBEvaluator.py +++ /dev/null @@ -1,15 +0,0 @@ -""" Test the TBEvaluator class.""" -import pytest - -from topobenchmark.evaluator import TBEvaluator - -class TestTBEvaluator: - """ Test the TBEvaluator 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__() \ No newline at end of file diff --git a/test/evaluator/test_evaluator.py b/test/evaluator/test_evaluator.py new file mode 100644 index 00000000..bd08b8ee --- /dev/null +++ b/test/evaluator/test_evaluator.py @@ -0,0 +1,12 @@ +""" Test the TBEvaluator class.""" +import pytest + +from topobenchmark.evaluator import TBEvaluator + +def test_evaluator(self): + """ 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__() \ No newline at end of file