Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmacavaney committed Dec 2, 2024
1 parent 7594ed3 commit 069a28c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,8 @@ def test_e5(self):
from pyterrier_dr import E5
testmodel = E5.base()
self._base_test(testmodel)
self.assertEqual(
True,
testmodel([{'qid': 'q1', 'query' : 'chemical reactions', 'docno' : 'd2', 'text' : 'professor proton mixed the chemical'}])[0]['score'] >0,
)
inp = pd.DataFrame([{'qid': 'q1', 'query' : 'chemical reactions', 'docno' : 'd2', 'text' : 'professor proton mixed the chemical'}])
self.assertTrue(testmodel(inp).iloc[0]['score'] > 0)

def test_tasb(self):
from pyterrier_dr import TasB
Expand Down

0 comments on commit 069a28c

Please sign in to comment.