You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Broke after aiogram commit 3ea73fbbbdfd5dd5c71e9b19e39cbd1ff99b500d
`import pytest
from aiogram_tests import MockedBot
from aiogram_tests.handler import MessageHandler
from aiogram_tests.types.dataset import BOT_COMMAND
from denis_hodge_podge_bot.handlers.start import start
______________________________________________________________ ERROR collecting tests/test_start.py ______________________________________________________________
ImportError while importing test module 'C:\Users\Sergei\PycharmProjects\Telegram\HodgepodgeBot\tests\test_start.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Python310\lib\importlib_init_.py:126: in import_module
return _bootstrap.gcd_import(name[level:], package, level)
tests\test_start.py:2: in
from aiogram_tests import MockedBot
.......virtualenvs\HodgepodgeBot-PgelrvFb\lib\site-packages\aiogram_tests_init.py:1: in
from .requester import MockedBot
.......virtualenvs\HodgepodgeBot-PgelrvFb\lib\site-packages\aiogram_tests\requester.py:1: in
from aiogram.utils.helper import Helper
E ModuleNotFoundError: No module named 'aiogram.utils.helper'
aiogram.utils.helper file was deleted
The text was updated successfully, but these errors were encountered:
I have the same problem. Probably you, like me, installed aiogram_test version 1.0.3 from PyPI on October 26, 2022, but the problem was solved in MR #12 on February 20, 2023, after which it was moved to main and no release was released.
@OCCCAS , can you please release a new release 1.0.4 to PyPi with new changes?
Broke after aiogram commit 3ea73fbbbdfd5dd5c71e9b19e39cbd1ff99b500d
`import pytest
from aiogram_tests import MockedBot
from aiogram_tests.handler import MessageHandler
from aiogram_tests.types.dataset import BOT_COMMAND
from denis_hodge_podge_bot.handlers.start import start
@pytest.mark.asyncio
async def test_start():
requester = MockedBot(MessageHandler(start))
calls = await requester.query(BOT_COMMAND(command='start'))
answer_message = calls.send_message.fetchone().text
print(answer_message)
`
______________________________________________________________ ERROR collecting tests/test_start.py ______________________________________________________________
ImportError while importing test module 'C:\Users\Sergei\PycharmProjects\Telegram\HodgepodgeBot\tests\test_start.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Python310\lib\importlib_init_.py:126: in import_module
return _bootstrap.gcd_import(name[level:], package, level)
tests\test_start.py:2: in
from aiogram_tests import MockedBot
.......virtualenvs\HodgepodgeBot-PgelrvFb\lib\site-packages\aiogram_tests_init.py:1: in
from .requester import MockedBot
.......virtualenvs\HodgepodgeBot-PgelrvFb\lib\site-packages\aiogram_tests\requester.py:1: in
from aiogram.utils.helper import Helper
E ModuleNotFoundError: No module named 'aiogram.utils.helper'
aiogram.utils.helper file was deleted
The text was updated successfully, but these errors were encountered: