Update: improve the unit testing of tutorial assistants and OCR assistants.

This commit is contained in:
Stitch-z 2023-12-26 13:47:04 +08:00
parent 4f52b47610
commit 6432ed6e60
4 changed files with 8 additions and 18 deletions

View file

@ -90,4 +90,5 @@ class TutorialAssistant(Role):
msg = await super().react()
root_path = TUTORIAL_PATH / datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
await File.write(root_path, f"{self.main_title}.md", self.total_content.encode("utf-8"))
msg.content = str(root_path / f"{self.main_title}.md")
return msg