MCPcopy
hub / github.com/wechaty/python-wechaty / test_scheduler

Function test_scheduler

tests/wechaty_test.py:25–32  ·  view source on GitHub ↗

test add scheduler in the options

()

Source from the content-addressed store, hash-verified

23
24
25def 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)

Callers

nothing calls this directly

Calls 2

WechatyOptionsClass · 0.90
WechatyClass · 0.90

Tested by

no test coverage detected