Skip to content

Commit

Permalink
refactor(wechatter): 删除未使用的导入并修复测试文件路径
Browse files Browse the repository at this point in the history
- 从 spark_chat.py 中删除了未使用的导入 DEFAULT_TOPIC 和 DEFAULT_CONVERSATION
- 修复了 test_idaily.py 中的文件路径问题,使用正确的相对路径
  • Loading branch information
Ashesttt committed Nov 18, 2024
1 parent a35e850 commit 8778eb7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions tests/commands/test_idaily/test_idaily.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
class TestTodayInHistoryCommand(unittest.TestCase):
def setUp(self):
with open(
# "tests/commands/test_idaily/idaily_response.json"
"idaily_response.json"
"tests/commands/test_idaily/idaily_response.json"
) as f:
self.tih_response = json.load(f)
self.tih_list = self.tih_response
Expand Down
1 change: 0 additions & 1 deletion wechatter/commands/_commands/spark_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from loguru import logger

from wechatter.commands._commands.openai_chat_gpt import DEFAULT_TOPIC, DEFAULT_CONVERSATION
from wechatter.commands.handlers import command
from wechatter.config import config
from wechatter.database import (
Expand Down

0 comments on commit 8778eb7

Please sign in to comment.