mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2025-09-11 13:00:40 +03:00
selenoid firefox to chrome
This commit is contained in:
parent
7c016c635e
commit
2b23a4df3f
@ -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
|
||||
|
||||
|
||||
|
@ -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': {
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
import factory
|
||||
from faker import Faker
|
||||
|
||||
from tests.data.models import Chat, User
|
||||
|
||||
faker = Faker('ru_RU')
|
||||
|
Loading…
x
Reference in New Issue
Block a user