Cover I18n module

This commit is contained in:
Alex Root Junior 2021-09-21 01:41:31 +03:00
parent a5892f63f4
commit 40dfbf804c
13 changed files with 169 additions and 23 deletions

View file

@ -1,3 +1,5 @@
from pathlib import Path
import pytest
from _pytest.config import UsageError
from aioredis.connection import parse_url as parse_redis_url
@ -7,6 +9,8 @@ from aiogram.dispatcher.fsm.storage.memory import MemoryStorage
from aiogram.dispatcher.fsm.storage.redis import RedisStorage
from tests.mocked_bot import MockedBot
DATA_DIR = Path(__file__).parent / "data"
def pytest_addoption(parser):
parser.addoption("--redis", default=None, help="run tests which require redis connection")