Skip to content

Commit

Permalink
[FIX] fix unittest bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-github committed Feb 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0c0052a commit 729e376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_notion_rich_text_analysis.py
Original file line number Diff line number Diff line change
@@ -162,9 +162,9 @@ def test_run_task_outputs():
output_dir = PROJECT_ROOT_DIR / "results/unittest"
while output_dir.exists():
output_dir = output_dir / "subdir"
with pytest.warns(None) as record:
run_task(task=CONFIG.tasks[0], output_dir=output_dir.as_posix())
print("!" * 5, len(record), record[0])
run_task(
task=CONFIG.tasks[0], config_file=config_file, output_dir=output_dir.as_posix()
)

# 测试输出结果是否正确
# 此处的假设是notion_text_analysis.run()会在output_dir下生成一个文件

0 comments on commit 729e376

Please sign in to comment.