Fix bug 533

Bug533-Yuyikai
余忆开 2024-06-03 10:32:48 +08:00
parent 62d978ad54
commit 5d4547986f
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ from app.main import load_word_list, calculate_coverage
def test_coverage_percentage():
try:
db_file = 'static/wordfreqapp.db'
csv_file = 'static/The_Oxford.csv'
db_file = "db\wordfreqapp.db"
csv_file = "db\The_Oxford.csv"
text_list = load_text_list_from_db(db_file)
word_set = load_word_list(csv_file)
coverage_percentage = "{:.2f}".format(calculate_coverage(text_list, word_set))