Skip to content

Commit 184b7cd

Browse files
committed
Altered test to be consistent with current behaviour
1 parent 72f49de commit 184b7cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CreeDictionary/tests/API_tests/model_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ def test_lemma_ranking_most_frequent_word():
262262
# the English sleep should many Cree words. But nipâw should show first because
263263
# it undoubtedly has the highest frequency
264264
results = search(query="sees").presentation_results()
265-
assert results[0].wordform.text == "wâpahtam"
265+
top_3_texts = set([ result.wordform.text for result in results[0:3]])
266+
assert "wâpahtam" in top_3_texts
267+
assert "wâpamêw" in top_3_texts
266268

267269

268270
@pytest.mark.django_db

0 commit comments

Comments
 (0)