TestTranslator / tests /test_app /test_logfile.py
yujuanqin's picture
refactor file sturcture
778443c
raw
history blame contribute delete
481 Bytes
from pathlib import Path
import pytest
test_files = [
# Path("/Users/jeqin/work/code/Translator/translator.log"),
Path("/Users/jeqin/Downloads/translator.log"),
# Path("/Users/jeqin/Downloads/translator-web-0527.log"),
# Path("/tmp/translator.log"),
]
@pytest.mark.parametrize("test_file", test_files)
def test_zh2en_logfile(test_file: Path, log_report):
log_report.from_logfile(test_file)
# log_report.to_csv(REPORTS_DIR/f"logfile_{get_time_str()}.csv")