diff --git a/tests/unit/encoders/test_bm25.py b/tests/unit/encoders/test_bm25.py index 086a80bd5166a6fdc9655521dc84e87056e1c01c..3a94602e651eca0e996570c155e80a3a9b46393e 100644 --- a/tests/unit/encoders/test_bm25.py +++ b/tests/unit/encoders/test_bm25.py @@ -9,11 +9,11 @@ def bm25_encoder(): class TestBM25Encoder: - def test_initialization(self): + def test_initialization(self, bm25_encoder): bm25_encoder = BM25Encoder() assert len(bm25_encoder.idx_mapping) != 0 - def test_call_method(self): + def test_call_method(self, bm25_encoder): result = bm25_encoder(["test"]) assert isinstance(result, list), "Result should be a list" assert all(