Skip to content

AttributeError: 'Flask' object has no attribute 'login_manager' FAILED #33891

@asukaminato0721

Description

@asukaminato0721
=========================== short test summary info ============================
FAILED api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py::TestApiKeyAuthDataSource::test_get_api_key_auth_data_source - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py::TestApiKeyAuthDataSource::test_get_api_key_auth_data_source_empty - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py::TestApiKeyAuthDataSourceBinding::test_create_binding_successful - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py::TestApiKeyAuthDataSourceBinding::test_create_binding_failure - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/auth/test_data_source_bearer_auth.py::TestApiKeyAuthDataSourceBindingDelete::test_delete_binding_successful - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/auth/test_data_source_oauth.py::TestOAuthDataSourceSync::test_sync_successful - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/auth/test_oauth_server.py::TestOAuthServerUserAuthorizeApi::test_successful_authorize - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_to_db_model_requires_constructor_context - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_to_db_model_requires_creator_user_id_and_role - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_is_duplicate_key_error_and_regenerate_id - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_to_domain_model_loads_offloaded_files - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_to_domain_model_returns_early_when_no_offload_data - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_save_execution_data_handles_existing_db_model_and_truncation - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_save_execution_data_truncates_outputs_and_process_data - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_save_execution_data_handles_missing_db_model - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_save_retries_duplicate_and_logs_non_duplicate - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/core/repositories/test_sqlalchemy_workflow_node_execution_repository.py::test_save_logs_and_reraises_on_unexpected_error - AttributeError: type object 'str' has no attribute 'LLM'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_chat_message_list_not_found - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_chat_message_list_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_feedback_not_found - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_feedback_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_annotation_count - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[MessageNotExistsError-NotFound] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[ConversationNotExistsError-NotFound] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[ProviderTokenNotInitError-ProviderNotInitializeError] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[QuotaExceededError-ProviderQuotaExceededError] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[ModelCurrentlyNotSupportError-ProviderModelCurrentlyNotSupportError] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[SuggestedQuestionsAfterAnswerDisabledError-AppSuggestedQuestionsAfterAnswerDisabledError] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_suggested_questions_errors[Exception-InternalServerError] - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_feedback_export_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_message.py::TestMessageEndpoints::test_message_api_get_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_daily_message_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_daily_conversation_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_daily_terminals_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_daily_token_cost_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_average_session_interaction_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_user_satisfaction_rate_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_average_response_time_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_tokens_per_second_statistic - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_invalid_time_range - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_statistic.py::TestStatisticEndpoints::test_time_range_params_passed - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_workflow_variable_collection_get_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_workflow_variable_collection_get_not_exist - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_workflow_variable_collection_delete - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_node_variable_collection_get_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_node_variable_collection_get_invalid_node_id - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_node_variable_collection_delete - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_variable_api_get_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_variable_api_get_not_found - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_variable_api_patch_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_variable_api_delete_success - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_variable_reset_api_put_success - AttributeError: 'Flask' object has no attribute 'login_manager'
specified configuration file /home/runner/work/dify/dify/api/tests/integration_tests/vdb.env not exist
2026-03-23 03:36:23,840.840 INFO [MainThread] [conftest.py:73]  - DifyTestContainers initialized - ready to manage test containers
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_conversation_variable_collection_get - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_system_variable_collection_get - AttributeError: 'Flask' object has no attribute 'login_manager'
FAILED api/tests/unit_tests/controllers/console/app/test_workflow_draft_variable.py::TestWorkflowDraftVariableEndpoints::test_environment_variable_collection_get - AttributeError: 'Flask' object has no attribute 'login_manager'

@dosu how to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions