We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72f49de commit 184b7cdCopy full SHA for 184b7cd
src/CreeDictionary/tests/API_tests/model_test.py
@@ -262,7 +262,9 @@ def test_lemma_ranking_most_frequent_word():
262
# the English sleep should many Cree words. But nipâw should show first because
263
# it undoubtedly has the highest frequency
264
results = search(query="sees").presentation_results()
265
- assert results[0].wordform.text == "wâpahtam"
+ 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
268
269
270
@pytest.mark.django_db
0 commit comments