mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove unused fixtures passing in storages tests
This commit is contained in:
parent
8837f1767c
commit
bbba6ce840
1 changed files with 3 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ def create_storage_key(bot: MockedBot):
|
|||
],
|
||||
)
|
||||
class TestStorages:
|
||||
async def test_set_state(self, bot: MockedBot, storage: BaseStorage, storage_key: StorageKey):
|
||||
async def test_set_state(self, storage: BaseStorage, storage_key: StorageKey):
|
||||
assert await storage.get_state(key=storage_key) is None
|
||||
|
||||
await storage.set_state(key=storage_key, state="state")
|
||||
|
|
@ -26,7 +26,7 @@ class TestStorages:
|
|||
await storage.set_state(key=storage_key, state=None)
|
||||
assert await storage.get_state(key=storage_key) is None
|
||||
|
||||
async def test_set_data(self, bot: MockedBot, storage: BaseStorage, storage_key: StorageKey):
|
||||
async def test_set_data(self, storage: BaseStorage, storage_key: StorageKey):
|
||||
assert await storage.get_data(key=storage_key) == {}
|
||||
|
||||
await storage.set_data(key=storage_key, data={"foo": "bar"})
|
||||
|
|
@ -34,9 +34,7 @@ class TestStorages:
|
|||
await storage.set_data(key=storage_key, data={})
|
||||
assert await storage.get_data(key=storage_key) == {}
|
||||
|
||||
async def test_update_data(
|
||||
self, bot: MockedBot, storage: BaseStorage, storage_key: StorageKey
|
||||
):
|
||||
async def test_update_data(self, storage: BaseStorage, storage_key: StorageKey):
|
||||
assert await storage.get_data(key=storage_key) == {}
|
||||
assert await storage.update_data(key=storage_key, data={"foo": "bar"}) == {"foo": "bar"}
|
||||
assert await storage.update_data(key=storage_key, data={}) == {"foo": "bar"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue