Created At: 2026-11-18T12:51:28Z Completed At: 2026-11-18T12:51:33Z Command exited with code 1. Command output: ============================= test session starts ============================== platform linux -- Python 3.12.3, pytest-9.2.0, pluggy-1.7.0 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 5 items tests/unit/test_bot_modular_engine.py ..F.. [100%] =================================== FAILURES =================================== _______________________ test_force_join_gating_behavior ________________________ db_session = @pytest.mark.asyncio async def test_force_join_gating_behavior(db_session: AsyncSession): """Verifies that force_join gates non-members and passes active members.""" bot = await create_dummy_bot(db_session, "Gate Bot") bot_id = bot.id service = BotModuleService(db_session) await service.install_module( bot_id, "force_join", config={"channel_username": "@exclusive_gate", "button_text": "Join Here"}, ) # Simulated member (default in mock) -> passes is_allowed, prompt = await service.check_force_join( bot_id=bot_id, raw_token="mock_token_gate", user_id=123456, ) assert is_allowed is True assert prompt is None # Simulated non-member (user 999000 returns 'left' status in mock) is_blocked, block_prompt = await service.check_force_join( bot_id=bot_id, raw_token="mock_token_gate", user_id=999000, ) assert is_blocked is False assert block_prompt is not None > assert "Channel Membership Required" in block_prompt["text"] E AssertionError: assert 'Channel Membership Required' in '⚠️ You must join our channel to use this bot.' tests/unit/test_bot_modular_engine.py:139: AssertionError =========================== short test summary info ============================ FAILED tests/unit/test_bot_modular_engine.py::test_force_join_gating_behavior ========================= 1 failed, 4 passed in 0.50s ==========================