mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix tests
This commit is contained in:
parent
2fd6616c64
commit
42ec3e5706
2 changed files with 3 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ class SqliteStorage(BaseStorage):
|
|||
f"""SELECT state
|
||||
FROM aiogram_fsm
|
||||
WHERE id = ?""",
|
||||
(id),
|
||||
(id,),
|
||||
)
|
||||
|
||||
row = await cursor.fetchone()
|
||||
|
|
|
|||
|
|
@ -114,11 +114,12 @@ async def memory_storage():
|
|||
|
||||
@pytest.fixture()
|
||||
async def sqlite_storage():
|
||||
storage = SqliteStorage.connect("aiogram_fsm_test.sqlite")
|
||||
storage = await SqliteStorage.connect("aiogram_fsm_test.sqlite")
|
||||
try:
|
||||
yield storage
|
||||
finally:
|
||||
await storage.close()
|
||||
Path("aiogram_fsm_test.sqlite").unlink()
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue