mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
refactor: remove redundant pytest marks (#654)
This commit is contained in:
parent
fff33e4ac9
commit
f2f276b8cf
111 changed files with 221 additions and 256 deletions
|
|
@ -4,6 +4,7 @@ from aiogram.dispatcher.event.bases import UNHANDLED, SkipHandler, skip
|
|||
from aiogram.dispatcher.router import Router
|
||||
from aiogram.utils.warnings import CodeHasNoEffect
|
||||
|
||||
pytestmark = pytest.mark.asyncio
|
||||
importable_router = Router()
|
||||
|
||||
|
||||
|
|
@ -73,7 +74,6 @@ class TestRouter:
|
|||
assert router.observers["pre_checkout_query"] == router.pre_checkout_query
|
||||
assert router.observers["poll"] == router.poll
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_emit_startup(self):
|
||||
router1 = Router()
|
||||
router2 = Router()
|
||||
|
|
@ -95,7 +95,6 @@ class TestRouter:
|
|||
await router1.emit_startup()
|
||||
assert results == [2, 1, 2]
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_emit_shutdown(self):
|
||||
router1 = Router()
|
||||
router2 = Router()
|
||||
|
|
@ -123,7 +122,6 @@ class TestRouter:
|
|||
with pytest.raises(SkipHandler, match="KABOOM"):
|
||||
skip("KABOOM")
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_global_filter_in_nested_router(self):
|
||||
r1 = Router()
|
||||
r2 = Router()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue