selenoid firefox to chrome

This commit is contained in:
Dmitry Afanasyev 2023-04-07 02:06:57 +03:00
parent 7c016c635e
commit 2b23a4df3f
4 changed files with 5 additions and 4 deletions

View File

@ -69,7 +69,7 @@ flake8-tidy-imports = "^4.8"
[tool.isort]
profile = "black"
multi_line_output = 3
src_paths = ["app",]
src_paths = ["app", "tests"]
combine_as_imports = true

View File

@ -4,6 +4,7 @@ import pytest
from aiogram import Bot, Dispatcher, types
from aiogram.dispatcher.filters.builtin import Command
from aiogram.types import Update
from app.core.bot import TransportBot
from tests.conftest import FakeTelegram
from tests.data.factories import ChatFactory, UserFactory
@ -24,7 +25,6 @@ async def test_get_me_from_bot(bot: Bot) -> None:
async def test_command1(bot: Bot) -> None:
TransportBot.dispatcher.bot = bot
handlers = TransportBot.dispatcher.message_handlers.handlers
commands = []
@ -38,7 +38,6 @@ async def test_command1(bot: Bot) -> None:
async def test_update(dispatcher_fixture: Dispatcher) -> None:
data = {
'update_id': 957250703,
'message': {

View File

@ -3,9 +3,10 @@ from unittest import mock
import pytest
from aiogram import Dispatcher, types
from faker import Faker
from app.core.bot import TransportBot
from app.core.parse_web import WebParser
from faker import Faker
from tests.conftest import FakeTelegram
from tests.data.factories import ChatFactory, UserFactory

View File

@ -1,5 +1,6 @@
import factory
from faker import Faker
from tests.data.models import Chat, User
faker = Faker('ru_RU')