コード例 #1
0
def test_parse_word(word, pronunciations, genre, definitions, page):
    """Test the sections finder and definitions getter."""
    code = page(word, "sv")
    details = parse_word(word, code, "sv", force=True)
    assert pronunciations == details.pronunciations
    assert genre == details.genre
    assert definitions == details.definitions
コード例 #2
0
ファイル: test_no.py プロジェクト: atti84it/ebook-reader-dict
def test_parse_word(word, pronunciations, etymology, definitions, page):
    """Test the sections finder and definitions getter."""
    code = page(word, "no")
    details = parse_word(word, code, "no", force=True)
    assert pronunciations == details.pronunciations
    assert etymology == details.etymology
    assert definitions == details.definitions
コード例 #3
0
def test_parse_word(word, pronunciations, genre, etymology, definitions,
                    variants, page):
    """Test the sections finder and definitions getter."""
    code = page(word, "fr")
    details = parse_word(word, code, "fr", force=True)
    assert pronunciations == details.pronunciations
    assert genre == details.genre
    assert definitions == details.definitions
    assert etymology == details.etymology
    assert variants == details.variants