From bbba6ce84037f95b54911a995d8f903f57d22a16 Mon Sep 17 00:00:00 2001 From: Rishat Fayzullin Date: Thu, 13 Jun 2024 13:47:10 +0300 Subject: [PATCH] Remove unused fixtures passing in storages tests --- tests/test_fsm/storage/test_storages.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/test_fsm/storage/test_storages.py b/tests/test_fsm/storage/test_storages.py index 1c1f87a2..b86a0588 100644 --- a/tests/test_fsm/storage/test_storages.py +++ b/tests/test_fsm/storage/test_storages.py @@ -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"}