mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Just try to set custom event loop policy manually
This commit is contained in:
parent
17652f038d
commit
04ee60d878
4 changed files with 24 additions and 25 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from unittest import mock
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
import pytest
|
||||
from pytest_lazy_fixtures import lf
|
||||
|
||||
from aiogram.fsm.storage.base import BaseEventIsolation, StorageKey
|
||||
from aiogram.fsm.storage.redis import RedisEventIsolation, RedisStorage
|
||||
|
|
@ -10,9 +10,9 @@ from aiogram.fsm.storage.redis import RedisEventIsolation, RedisStorage
|
|||
@pytest.mark.parametrize(
|
||||
"isolation",
|
||||
[
|
||||
pytest.lazy_fixture("redis_isolation"),
|
||||
pytest.lazy_fixture("lock_isolation"),
|
||||
pytest.lazy_fixture("disabled_isolation"),
|
||||
lf("redis_isolation"),
|
||||
lf("lock_isolation"),
|
||||
lf("disabled_isolation"),
|
||||
],
|
||||
)
|
||||
class TestIsolations:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import pytest
|
||||
from pytest_lazy_fixtures import lf
|
||||
|
||||
from aiogram.fsm.storage.base import BaseStorage, StorageKey
|
||||
|
||||
|
|
@ -6,9 +7,9 @@ from aiogram.fsm.storage.base import BaseStorage, StorageKey
|
|||
@pytest.mark.parametrize(
|
||||
"storage",
|
||||
[
|
||||
pytest.lazy_fixture("redis_storage"),
|
||||
pytest.lazy_fixture("mongo_storage"),
|
||||
pytest.lazy_fixture("memory_storage"),
|
||||
lf("redis_storage"),
|
||||
lf("mongo_storage"),
|
||||
lf("memory_storage"),
|
||||
],
|
||||
)
|
||||
class TestStorages:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue