| 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"), | |
| ] | |
| 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") | |