mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-09 18:27:56 +08:00
auto fix by pre-commit hooks
This commit is contained in:
committed by
felinae98
parent
ebcf1cc300
commit
1543ba21d2
@@ -1,5 +1,5 @@
|
||||
from nonebug.app import App
|
||||
import pytest
|
||||
from nonebug.app import App
|
||||
from sqlalchemy.ext.asyncio.session import AsyncSession
|
||||
from sqlalchemy.sql.functions import func
|
||||
from sqlmodel.sql.expression import select
|
||||
@@ -72,11 +72,11 @@ async def test_add_subscribe(app: App, init_scheduler):
|
||||
assert conf.categories == [1]
|
||||
assert conf.tags == ["tag"]
|
||||
|
||||
|
||||
async def test_add_dup_sub(init_scheduler):
|
||||
|
||||
from nonebot_bison.config.db_config import config
|
||||
from nonebot_bison.config.db_config import SubscribeDupException, config
|
||||
from nonebot_bison.types import Target as TTarget
|
||||
from nonebot_bison.config.db_config import SubscribeDupException
|
||||
|
||||
await config.add_subscribe(
|
||||
user=123,
|
||||
@@ -99,6 +99,7 @@ async def test_add_dup_sub(init_scheduler):
|
||||
tags=[],
|
||||
)
|
||||
|
||||
|
||||
async def test_del_subsribe(init_scheduler):
|
||||
from nonebot_bison.config.db_config import config
|
||||
from nonebot_bison.config.db_model import Subscribe, Target, User
|
||||
|
||||
Reference in New Issue
Block a user