Skip to content
Snippets Groups Projects
Unverified Commit 55cd79da authored by James Briggs's avatar James Briggs
Browse files

fix bm25 test

parent 1eb511c0
No related branches found
No related tags found
No related merge requests found
...@@ -9,11 +9,11 @@ def bm25_encoder(): ...@@ -9,11 +9,11 @@ def bm25_encoder():
class TestBM25Encoder: class TestBM25Encoder:
def test_initialization(self): def test_initialization(self, bm25_encoder):
bm25_encoder = BM25Encoder() bm25_encoder = BM25Encoder()
assert len(bm25_encoder.idx_mapping) != 0 assert len(bm25_encoder.idx_mapping) != 0
def test_call_method(self): def test_call_method(self, bm25_encoder):
result = bm25_encoder(["test"]) result = bm25_encoder(["test"])
assert isinstance(result, list), "Result should be a list" assert isinstance(result, list), "Result should be a list"
assert all( assert all(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment