EnglishPal/app/test_vocabulary.py

12 lines
317 B
Python
Raw Normal View History

2025-05-30 12:46:16 +08:00
from vocabulary import UserVocabularyLevel, ArticleVocabularyLevel
def test_article_level():
''' Boundary case test '''
article = ArticleVocabularyLevel('')
assert article.level == 0
def test_user_level():
''' Boundary case test '''
user = UserVocabularyLevel({})
assert user.level == 0