mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
check reset
This commit is contained in:
parent
5b577571d3
commit
d37e89f128
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,12 @@ class TestStorage:
|
|||
|
||||
@pytest.mark.asyncio
|
||||
async def test_reset(self, store):
|
||||
await store.set_data(chat='1234', data={'foo': 'bar'})
|
||||
await store.reset_data(chat='1234')
|
||||
assert await store.get_data(chat='1234') == {}
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_reset_empty(self, store):
|
||||
await store.reset_data(chat='1234')
|
||||
assert await store.get_data(chat='1234') == {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue