mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
test for TokenBasedRequestHandler.verify_secret
This commit is contained in:
parent
8a02fcef07
commit
361a94ec34
1 changed files with 6 additions and 0 deletions
|
|
@ -202,6 +202,12 @@ class TestSimpleRequestHandler:
|
|||
|
||||
|
||||
class TestTokenBasedRequestHandler:
|
||||
|
||||
async def test_verify_secret(self):
|
||||
dispatcher = Dispatcher()
|
||||
handler = TokenBasedRequestHandler(dispatcher=dispatcher)
|
||||
assert handler.verify_secret("petro328")
|
||||
|
||||
async def test_register(self):
|
||||
dispatcher = Dispatcher()
|
||||
app = Application()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue