Skip to content

Commit 4849301

Browse files
committed
remove auto_reloader from app
1 parent 86d7400 commit 4849301

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/wechaty/plugin.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,6 @@ async def start(self) -> None:
849849
task = self.app.run_task(
850850
host=host,
851851
port=port,
852-
use_reloader=False,
853852
shutdown_trigger=shutdown_trigger
854853
)
855854
loop = asyncio.get_event_loop()

tests/wechaty_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
Unit test
33
"""
44
import pytest
5+
import os
56
from wechaty_puppet import WechatyPuppetConfigurationError
67
from wechaty import Wechaty, WechatyOptions
78

89
def test_constructor():
10+
# remove environment variables
11+
os.environ.pop("token")
12+
913
with pytest.raises(WechatyPuppetConfigurationError):
1014
bot = Wechaty()
1115

0 commit comments

Comments
 (0)