Skip to content

Commit

Permalink
Fix assert_has_full_lexeme check
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Sep 8, 2023
1 parent ca88a94 commit 3d012fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_lexemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def test_full_lexemes(lexeme, morph):


def assert_has_full_lexeme(word, forms, morph):
assert any([(f.word, str(f.tag)) for f in p.lexeme] for p in morph.parse(word)), \
assert any([(f.word, str(f.tag)) for f in p.lexeme] == forms for p in morph.parse(word)), \
f"Word {word} doesn't have lexeme {forms}"


Expand Down

0 comments on commit 3d012fd

Please sign in to comment.