finish first admin frontend

This commit is contained in:
felinae98
2021-11-29 12:10:54 +08:00
parent 96a49fc78c
commit 82a13ceb66
10 changed files with 123 additions and 31 deletions
+12
View File
@@ -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'])