============================= 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
testpaths: tests
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 98 items                                                             

tests/integration/test_ai_api.py::test_ai_module_full_lifecycle PASSED   [  1%]
tests/integration/test_auth.py::test_auth_workflow PASSED                [  2%]
tests/integration/test_billing_checkout_and_lifecycle.py::test_full_billing_lifecycle_and_security PASSED [  3%]
tests/integration/test_billing_webhooks.py::test_razorpay_and_stripe_webhooks_and_deduplication PASSED [  4%]
tests/integration/test_bot_synthesizer_api.py::test_bot_synthesizer_api_full_flow PASSED [  5%]
tests/integration/test_broadcasts_api.py::test_broadcast_and_notifications_full_lifecycle PASSED [  6%]
tests/integration/test_celery_telegram_tasks.py::test_telegram_update_task_execution PASSED [  7%]
tests/integration/test_emojis_api.py::test_search_emojis_by_term PASSED  [  8%]
tests/integration/test_emojis_api.py::test_search_emojis_by_category PASSED [  9%]
tests/integration/test_emojis_api.py::test_get_categories_list PASSED    [ 10%]
tests/integration/test_emojis_api.py::test_bulk_emoji_import_and_packs_management PASSED [ 11%]
tests/integration/test_health.py::test_health_liveness PASSED            [ 12%]
tests/integration/test_health.py::test_health_readiness PASSED           [ 13%]
tests/integration/test_i18n_api.py::test_get_locales_list PASSED         [ 14%]
tests/integration/test_i18n_api.py::test_get_translation_bundle PASSED   [ 15%]
tests/integration/test_i18n_api.py::test_update_user_locale PASSED       [ 16%]
tests/integration/test_i18n_api.py::test_save_custom_translation_override PASSED [ 17%]
tests/integration/test_i18n_api.py::test_audit_translations_and_missing_keys PASSED [ 18%]
tests/integration/test_i18n_api.py::test_ai_translation_and_human_approval_workflow PASSED [ 19%]
tests/integration/test_marketplace_api.py::test_marketplace_api_full_lifecycle_and_tenant_isolation PASSED [ 20%]
tests/integration/test_mcp_api.py::test_mcp_pro_full_lifecycle_and_tenant_isolation PASSED [ 21%]
tests/integration/test_message_studio_api.py::test_bot_message_studio_lifecycle PASSED [ 22%]
tests/integration/test_message_studio_e2e_publishing.py::test_message_studio_publishing_changes_real_bot_response PASSED [ 23%]
tests/integration/test_multi_bot_engine.py::test_multi_tenant_multi_bot_engine_lifecycle PASSED [ 24%]
tests/integration/test_multilingual_bot_responses.py::test_language_selection_in_actual_bot_responses PASSED [ 25%]
tests/integration/test_plugins_api.py::test_plugins_module_full_lifecycle PASSED [ 26%]
tests/integration/test_text_designer_api.py::test_text_designer_api_endpoints PASSED [ 27%]
tests/tenant_isolation/test_tenant_isolation.py::test_strict_tenant_isolation PASSED [ 28%]
tests/unit/test_ai_engine.py::test_openai_provider_models_and_completion PASSED [ 29%]
tests/unit/test_ai_engine.py::test_openrouter_provider_models_and_completion PASSED [ 30%]
tests/unit/test_ai_engine.py::test_ai_provider_factory PASSED            [ 31%]
tests/unit/test_billing_gateways.py::test_razorpay_payment_signature_verification PASSED [ 32%]
tests/unit/test_billing_gateways.py::test_razorpay_webhook_signature_verification PASSED [ 33%]
tests/unit/test_billing_gateways.py::test_stripe_webhook_signature_verification PASSED [ 34%]
tests/unit/test_billing_gateways.py::test_gateway_factory_resolution PASSED [ 35%]
tests/unit/test_bot_engine.py::test_bot_token_validation_with_getme PASSED [ 36%]
tests/unit/test_bot_engine.py::test_bot_token_encryption_and_decryption PASSED [ 37%]
tests/unit/test_bot_engine.py::test_webhook_secret_generation_and_verification PASSED [ 38%]
tests/unit/test_bot_engine.py::test_rate_limit_retry_handling PASSED     [ 39%]
tests/unit/test_bot_synthesizer.py::test_ai_synthesizer_support_desk_intent PASSED [ 40%]
tests/unit/test_bot_synthesizer.py::test_ai_synthesizer_ecommerce_store_intent PASSED [ 41%]
tests/unit/test_broadcast_engine.py::test_broadcast_audience_selection_and_opt_out PASSED [ 42%]
tests/unit/test_coupons_and_entitlements.py::test_coupon_validation_and_discounts PASSED [ 43%]
tests/unit/test_coupons_and_entitlements.py::test_entitlement_enforcement_and_feature_gates PASSED [ 44%]
tests/unit/test_emojis.py::test_telegram_html_emoji_formatting PASSED    [ 45%]
tests/unit/test_emojis.py::test_telegram_markdown_emoji_formatting PASSED [ 46%]
tests/unit/test_emojis.py::test_id_precision_is_preserved_as_string PASSED [ 47%]
tests/unit/test_emojis.py::test_custom_emoji_validation PASSED           [ 48%]
tests/unit/test_formatter_and_engine.py::test_box_header_formatting PASSED [ 50%]
tests/unit/test_formatter_and_engine.py::test_separator_presets PASSED   [ 51%]
tests/unit/test_formatter_and_engine.py::test_info_block_formatting PASSED [ 52%]
tests/unit/test_formatter_and_engine.py::test_progress_bar_generation PASSED [ 53%]
tests/unit/test_formatter_and_engine.py::test_progress_step_header PASSED [ 54%]
tests/unit/test_formatter_and_engine.py::test_telegram_message_builder PASSED [ 55%]
tests/unit/test_i18n.py::test_supported_locales_catalog PASSED           [ 56%]
tests/unit/test_i18n.py::test_rtl_detection PASSED                       [ 57%]
tests/unit/test_i18n.py::test_plural_rules PASSED                        [ 58%]
tests/unit/test_i18n.py::test_formatting PASSED                          [ 59%]
tests/unit/test_i18n.py::test_fallback_resolution PASSED                 [ 60%]
tests/unit/test_i18n.py::test_translation_engine PASSED                  [ 61%]
tests/unit/test_i18n.py::test_bcp47_locale_normalization PASSED          [ 62%]
tests/unit/test_i18n.py::test_interpolation PASSED                       [ 63%]
tests/unit/test_i18n.py::test_missing_translation_fallback PASSED        [ 64%]
tests/unit/test_i18n.py::test_telegram_keyboard_builder PASSED           [ 65%]
tests/unit/test_marketplace.py::test_marketplace_bot_manifests_catalog_integrity PASSED [ 66%]
tests/unit/test_marketplace.py::test_reusable_marketplace_modules_catalog PASSED [ 67%]
tests/unit/test_mcp_protocol.py::test_platform_mcp_tools_registry_integrity PASSED [ 68%]
tests/unit/test_mcp_protocol.py::test_mcp_server_initialize_handshake PASSED [ 69%]
tests/unit/test_mcp_protocol.py::test_mcp_server_ping_and_invalid_methods PASSED [ 70%]
tests/unit/test_message_studio.py::test_variable_interpolation PASSED    [ 71%]
tests/unit/test_message_studio.py::test_missing_variables_fallback PASSED [ 72%]
tests/unit/test_message_studio.py::test_keyboard_matrix_ordering PASSED  [ 73%]
tests/unit/test_message_studio.py::test_aiogram_keyboard_generation PASSED [ 74%]
tests/unit/test_message_studio.py::test_default_system_templates PASSED  [ 75%]
tests/unit/test_plugins_engine.py::test_plugin_permission_check PASSED   [ 76%]
tests/unit/test_plugins_engine.py::test_plugin_hook_execution_in_sandbox PASSED [ 77%]
tests/unit/test_plugins_engine.py::test_plugin_crypto_price_tracker PASSED [ 78%]
tests/unit/test_security.py::test_password_hashing PASSED                [ 79%]
tests/unit/test_security.py::test_aes_256_gcm_encryption PASSED          [ 80%]
tests/unit/test_security.py::test_jwt_tokens PASSED                      [ 81%]
tests/unit/test_security.py::test_token_hashing PASSED                   [ 82%]
tests/unit/test_security_audit.py::test_secure_filename_and_path_traversal_neutralization PASSED [ 83%]
tests/unit/test_security_audit.py::test_validate_file_content_magic_bytes_and_extensions PASSED [ 84%]
tests/unit/test_security_audit.py::test_safe_template_rendering_zero_ssti_and_eval PASSED [ 85%]
tests/unit/test_security_audit.py::test_in_app_rate_limiter_sliding_window PASSED [ 86%]
tests/unit/test_security_audit.py::test_sql_injection_defense_via_parameterized_queries PASSED [ 87%]
tests/unit/test_security_audit.py::test_audit_service_action_logging PASSED [ 88%]
tests/unit/test_unicode_styler.py::test_small_caps_transformation PASSED [ 89%]
tests/unit/test_unicode_styler.py::test_tag_and_variable_preservation PASSED [ 90%]
tests/unit/test_unicode_styler.py::test_other_unicode_styles PASSED      [ 91%]
tests/unit/test_unicode_styler.py::test_symbol_catalog_contents PASSED   [ 92%]
tests/unit/test_validators_and_presets.py::test_html_validator_valid PASSED [ 93%]
tests/unit/test_validators_and_presets.py::test_html_validator_invalid_tags PASSED [ 94%]
tests/unit/test_validators_and_presets.py::test_html_validator_unclosed_tags PASSED [ 95%]
tests/unit/test_validators_and_presets.py::test_message_length_validator PASSED [ 96%]
tests/unit/test_validators_and_presets.py::test_callback_data_validator PASSED [ 97%]
tests/unit/test_validators_and_presets.py::test_preset_manager_loads_all_presets PASSED [ 98%]
tests/unit/test_wallet_and_ledger.py::test_wallet_credit_debit_and_immutable_checksum PASSED [100%]

=============================== warnings summary ===============================
tests/unit/test_marketplace.py:5
  /root/telegram-saas/tests/unit/test_marketplace.py:5: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

tests/unit/test_marketplace.py:51
  /root/telegram-saas/tests/unit/test_marketplace.py:51: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

tests/unit/test_mcp_protocol.py:8
  /root/telegram-saas/tests/unit/test_mcp_protocol.py:8: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

tests/unit/test_security_audit.py:15
  /root/telegram-saas/tests/unit/test_security_audit.py:15: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

tests/unit/test_security_audit.py:25
  /root/telegram-saas/tests/unit/test_security_audit.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

tests/unit/test_security_audit.py:50
  /root/telegram-saas/tests/unit/test_security_audit.py:50: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

tests/unit/test_security_audit.py:72
  /root/telegram-saas/tests/unit/test_security_audit.py:72: PytestUnknownMarkWarning: Unknown pytest.mark.unit - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    @pytest.mark.unit

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 98 passed, 7 warnings in 8.94s ========================
