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

test fix

parent 42dea8dd
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,11 @@ def bm25_encoder():
class TestBM25Encoder:
def test_initialization(self):
self.bm25_encoder = BM25Encoder()
assert len(self.bm25_encoder.idx_mapping) != 0
bm25_encoder = BM25Encoder()
assert len(bm25_encoder.idx_mapping) != 0
def test_call_method(self):
result = self.bm25_encoder(["test"])
result = bm25_encoder(["test"])
assert isinstance(result, list), "Result should be a list"
assert all(
isinstance(sublist, list) for sublist in result
......
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