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(): ...@@ -10,11 +10,11 @@ def bm25_encoder():
class TestBM25Encoder: class TestBM25Encoder:
def test_initialization(self): def test_initialization(self):
self.bm25_encoder = BM25Encoder() bm25_encoder = BM25Encoder()
assert len(self.bm25_encoder.idx_mapping) != 0 assert len(bm25_encoder.idx_mapping) != 0
def test_call_method(self): def test_call_method(self):
result = self.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(
isinstance(sublist, list) for sublist in result isinstance(sublist, list) for sublist in result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment