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
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
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