============================= test session starts ==============================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
rootdir: /build/python-aiogram/src/aiogram-2.17.1
plugins: lazy-fixture-0.6.3, aresponses-2.1.4, asyncio-0.16.0
collected 396 items

tests/test_bot.py ...............................................        [ 11%]
tests/test_dispatcher.py .....                                           [ 13%]
tests/test_filters.py .................................................. [ 25%]
........................................................................ [ 43%]
..............................................                           [ 55%]
tests/test_message.py .                                                  [ 55%]
tests/test_states_group.py ........                                      [ 57%]
tests/contrib/fsm_storage/test_storage.py s..s..s..s.                    [ 60%]
tests/test_bot/test_api.py ..........                                    [ 63%]
tests/test_bot/test_bot_download_file.py ........                        [ 65%]
tests/test_bot/test_session.py ...                                       [ 65%]
tests/test_dispatcher/test_fsm_context.py .                              [ 66%]
tests/test_dispatcher/test_handler.py ....                               [ 67%]
tests/test_dispatcher/test_filters/test_builtin.py ...................   [ 71%]
tests/test_dispatcher/test_filters/test_state.py .                       [ 72%]
tests/test_utils/test_auth_widget.py .....                               [ 73%]
tests/test_utils/test_callback_data.py ...                               [ 74%]
tests/test_utils/test_deep_linking.py .........................          [ 80%]
tests/test_utils/test_deprecated.py .                                    [ 80%]
tests/test_utils/test_helper.py ..                                       [ 81%]
tests/test_utils/test_markdown.py ..                                     [ 81%]
tests/test_utils/test_text_decorations.py ..                             [ 82%]
tests/types/test_animation.py ......                                     [ 83%]
tests/types/test_chat.py .......                                         [ 85%]
tests/types/test_chat_member.py ........                                 [ 87%]
tests/types/test_document.py ......                                      [ 89%]
tests/types/test_game.py .....                                           [ 90%]
tests/types/test_input_media.py ..                                       [ 90%]
tests/types/test_message.py ......                                       [ 92%]
tests/types/test_mixins.py .............                                 [ 95%]
tests/types/test_photo.py ....                                           [ 96%]
tests/types/test_reply_keyboard.py ..                                    [ 97%]
tests/types/test_update.py ...                                           [ 97%]
tests/types/test_user.py ........                                        [100%]

=============================== warnings summary ===============================
../../../../usr/lib/python3.10/site-packages/aioredis/connection.py:10
  /usr/lib/python3.10/site-packages/aioredis/connection.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils.version import StrictVersion

tests/test_bot.py: 47 warnings
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_bot.py:14: DeprecationWarning: Call to deprecated function close (This method's behavior will be changed in aiogram v3.0. More info: https://core.telegram.org/bots/api#close).
    await _bot.close()

tests/test_bot.py::test_close_bot
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/deprecated.py:36: DeprecationWarning: Call to deprecated function close_bot (This method will be renamed to `close` in aiogram v3.0).
    warn_deprecated(msg.format(name=func.__name__, reason=reason), stacklevel=stacklevel)

tests/test_dispatcher.py::TestDispatcherInit::test_successful_init
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_dispatcher.py:13: DeprecationWarning: Call to deprecated function close (This method's behavior will be changed in aiogram v3.0. More info: https://core.telegram.org/bots/api#close).
    await _bot.close()

tests/test_message.py::TestMiscCases::test_calling_bot_not_from_context
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_message.py:16: DeprecationWarning: Call to deprecated function close (This method's behavior will be changed in aiogram v3.0. More info: https://core.telegram.org/bots/api#close).
    await _bot.close()

tests/contrib/fsm_storage/test_storage.py::TestStorage::test_set_get[redis_store2]
tests/contrib/fsm_storage/test_storage.py::TestStorage::test_reset[redis_store2]
tests/contrib/fsm_storage/test_storage.py::TestStorage::test_reset_empty[redis_store2]
tests/contrib/fsm_storage/test_storage.py::TestRedisStorage2::test_close_and_open_connection[redis_store2]
  /build/python-aiogram/src/aiogram-2.17.1/tests/contrib/fsm_storage/test_storage.py:31: DeprecationWarning: Call to deprecated function redis (This method will be removed in aiogram v3.0. You should use your own instance of Redis.).
    conn = await s.redis()

tests/contrib/fsm_storage/test_storage.py::TestStorage::test_set_get[redis_store2]
tests/contrib/fsm_storage/test_storage.py::TestStorage::test_reset[redis_store2]
tests/contrib/fsm_storage/test_storage.py::TestStorage::test_reset_empty[redis_store2]
tests/contrib/fsm_storage/test_storage.py::TestRedisStorage2::test_close_and_open_connection[redis_store2]
  /usr/lib/python3.10/asyncio/base_events.py:666: RuntimeWarning: coroutine 'Connection.disconnect' was never awaited
    self._ready.clear()

tests/test_bot/test_session.py::TestAiohttpSession::test_create_bot
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_bot/test_session.py:26: DeprecationWarning: Call to deprecated function session (Client session should be created inside async function, use `await bot.get_session()` instead).
    assert bot.session == bot._session

tests/test_utils/test_auth_widget.py::test_generate_hash
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_utils/test_auth_widget.py:23: DeprecationWarning: Call to deprecated function generate_hash (`generate_hash` is outdated, please use `check_signature` or `check_integrity`).
    res = generate_hash(data, TOKEN)

tests/test_utils/test_auth_widget.py::Test_check_token::test_ok
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_utils/test_auth_widget.py:32: DeprecationWarning: Call to deprecated function check_token (`check_token` helper was renamed to `check_integrity`).
    assert check_token(data, TOKEN) is True

tests/test_utils/test_auth_widget.py::Test_check_token::test_ok
tests/test_utils/test_auth_widget.py::Test_check_token::test_fail
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/auth_widget.py:40: DeprecationWarning: Call to deprecated function generate_hash (`generate_hash` is outdated, please use `check_signature` or `check_integrity`).
    return param_hash == generate_hash(data, token)

tests/test_utils/test_auth_widget.py::Test_check_token::test_fail
  /build/python-aiogram/src/aiogram-2.17.1/tests/test_utils/test_auth_widget.py:36: DeprecationWarning: Call to deprecated function check_token (`check_token` helper was renamed to `check_integrity`).
    assert check_token(data, TOKEN) is False

tests/types/test_chat.py::test_chat_types
  /build/python-aiogram/src/aiogram-2.17.1/tests/types/test_chat.py:38: DeprecationWarning: SUPER_GROUP chat type is deprecated, use SUPERGROUP instead.
    assert types.ChatType.SUPER_GROUP == 'supergroup'

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/deprecated.py:36: DeprecationWarning: Call to deprecated function is_private (This filter was moved to ChatTypeFilter, and will be removed in aiogram v3.0).
    warn_deprecated(msg.format(name=func.__name__, reason=reason), stacklevel=stacklevel)

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/deprecated.py:36: DeprecationWarning: Call to deprecated function is_group (This filter was moved to ChatTypeFilter, and will be removed in aiogram v3.0).
    warn_deprecated(msg.format(name=func.__name__, reason=reason), stacklevel=stacklevel)

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/deprecated.py:36: DeprecationWarning: Call to deprecated function is_super_group (This filter was moved to ChatTypeFilter, and will be removed in aiogram v3.0).
    warn_deprecated(msg.format(name=func.__name__, reason=reason), stacklevel=stacklevel)

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/types/chat.py:713: DeprecationWarning: SUPER_GROUP chat type is deprecated, use SUPERGROUP instead.
    return cls._check(obj, [cls.SUPER_GROUP, cls.SUPERGROUP])

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/deprecated.py:36: DeprecationWarning: Call to deprecated function is_group_or_super_group (This filter was moved to ChatTypeFilter, and will be removed in aiogram v3.0).
    warn_deprecated(msg.format(name=func.__name__, reason=reason), stacklevel=stacklevel)

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/types/chat.py:724: DeprecationWarning: SUPER_GROUP chat type is deprecated, use SUPERGROUP instead.
    return cls._check(obj, [cls.GROUP, cls.SUPER_GROUP, cls.SUPERGROUP])

tests/types/test_chat.py::test_chat_type_filters
  /build/python-aiogram/src/aiogram-2.17.1/aiogram/utils/deprecated.py:36: DeprecationWarning: Call to deprecated function is_channel (This filter was moved to ChatTypeFilter, and will be removed in aiogram v3.0).
    warn_deprecated(msg.format(name=func.__name__, reason=reason), stacklevel=stacklevel)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
================= 392 passed, 4 skipped, 73 warnings in 19.99s =================
WARNING [pifpaf.util] `psutil.Popen(pid=1097, status='terminated', exitcode=0, started='12:37:20')` is already gone, sending SIGKILL to its process group
