============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-9.2.0, pluggy-1.7.0 -- /root/telegram-saas/.venv/bin/python3
cachedir: .pytest_cache
rootdir: /root/telegram-saas
configfile: pyproject.toml
plugins: anyio-4.16.0, asyncio-1.5.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function
collecting ... collected 15 items                                                             

tests/unit/test_bot_modular_engine.py::test_module_catalog_definitions PASSED [  6%]
tests/unit/test_bot_modular_engine.py::test_bot_module_lifecycle PASSED  [ 13%]
tests/unit/test_bot_modular_engine.py::test_force_join_gating_behavior PASSED [ 20%]
tests/unit/test_bot_modular_engine.py::test_referrals_and_growth_attribution PASSED [ 26%]
tests/unit/test_bot_modular_engine.py::test_auto_filter_keyword_and_blocked_words PASSED [ 33%]
tests/unit/test_bot_modular_engine.py::test_redeem_code_lifecycle_and_redemption PASSED [ 40%]
tests/unit/test_bot_modular_engine.py::test_three_way_triggers_and_menu_generation PASSED [ 46%]
tests/unit/test_bot_modular_engine.py::test_captcha_and_daily_rewards_lifecycle PASSED [ 53%]
tests/unit/test_bot_modular_engine.py::test_file_store_and_support_tickets_lifecycle PASSED [ 60%]
tests/integration/test_bot_modular_api_and_execution.py::test_bot_modular_api_and_execution_lifecycle PASSED [ 66%]
tests/unit/test_mcp_protocol.py::test_platform_mcp_tools_registry_integrity PASSED [ 73%]
tests/unit/test_mcp_protocol.py::test_mcp_server_initialize_handshake PASSED [ 80%]
tests/unit/test_mcp_protocol.py::test_mcp_server_ping_and_invalid_methods PASSED [ 86%]
tests/integration/test_mcp_api.py::test_mcp_pro_full_lifecycle_and_tenant_isolation PASSED [ 93%]
tests/integration/test_admin_platform_api.py::test_admin_platform_endpoints_and_superuser_guard PASSED [100%]

============================== 15 passed in 4.67s ==============================
