We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a0cf3 commit ad7dd5bCopy full SHA for ad7dd5b
tests/wechaty_test.py
@@ -3,6 +3,7 @@
3
"""
4
import pytest
5
import os
6
+from apscheduler.schedulers.asyncio import AsyncIOScheduler
7
from wechaty_puppet import WechatyPuppetConfigurationError
8
from wechaty import Wechaty, WechatyOptions
9
@@ -19,3 +20,13 @@ def test_constructor():
19
20
21
assert bot.puppet.options.token == 'fake-token'
22
assert bot.puppet.options.end_point == '127.0.0.1:8080'
23
+
24
25
+def test_scheduler():
26
+ """test add scheduler in the options"""
27
+ scheduler = AsyncIOScheduler()
28
+ options = WechatyOptions(
29
+ scheduler=scheduler
30
+ )
31
+ bot = Wechaty(options=options)
32
+ assert id(scheduler) == id(bot._plugin_manager.scheduler)
0 commit comments