コード例 #1
0
def check_mosquitos(sci_name):
    new_name = tax_resolve_fuzzy(sci_name, synonyms=syn2)
    new_name = new_name if new_name else sci_name
    assert new_name == 'Aedes clivis'
コード例 #2
0
def check_apple(entered_value, corrected_value):
    new_name = tax_resolve_fuzzy(entered_value, synonyms=syn1, sensitivity=0.8)
    new_name = new_name if new_name else entered_value
    assert new_name == corrected_value