mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
finish first admin frontend
This commit is contained in:
@@ -24,3 +24,15 @@ def test_create_and_get(config: 'nonebot_bison.config.Config', plugin_module: 'n
|
||||
assert(len(confs) == 1)
|
||||
assert(config.target_user_cache['weibo']['weibo_id'] == \
|
||||
[plugin_module.types.User('123', 'group')])
|
||||
assert(confs[0]['cats'] == [])
|
||||
config.update_subscribe(
|
||||
user='123',
|
||||
user_type='group',
|
||||
target='weibo_id',
|
||||
target_name='weibo_name',
|
||||
target_type='weibo',
|
||||
cats=['1'],
|
||||
tags=[])
|
||||
confs = config.list_subscribe('123', 'group')
|
||||
assert(len(confs) == 1)
|
||||
assert(confs[0]['cats'] == ['1'])
|
||||
|
||||
Reference in New Issue
Block a user