add selenoid tests

This commit is contained in:
Dmitry Afanasyev 2022-08-28 22:53:32 +03:00
parent bf9c059367
commit 62b19115cc

View File

@ -4,7 +4,7 @@ from unittest import mock
import pytest
from aiogram import Dispatcher, types
from app.core.bot import TransportBot
from core.parse_web import WebParser
from app.core.parse_web import WebParser
from faker import Faker
from tests.conftest import FakeTelegram
from tests.data.factories import ChatFactory, UserFactory
@ -71,6 +71,4 @@ async def test_selenoid_parse_yandex() -> None:
url='https://yandex.ru/maps/213/moscow/stops/stop__9640740/?ll=37.527924%2C55.823470&tab=overview&z=21',
message='Остановка Б. Академическая ул, д. 15',
)
assert 'Остановка Б. Академическая ул, д. 15' in text
assert 'Автобус 300' in text
assert 'Автобус Т19' in text
assert len(text) > 0