============================= test session starts ==============================
platform linux -- Python 3.10.12, pytest-9.0.2, pluggy-1.6.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /workspace
plugins: isolate-0.0.13, cov-7.0.0, anyio-4.12.0, returns-0.26.0
collecting ... collected 145 items

tests/e2e/test_application_workflow.py::TestCompleteApplicationWorkflows::test_daily_operations_workflow PASSED [  0%]
tests/e2e/test_application_workflow.py::TestCompleteApplicationWorkflows::test_data_export_and_backup_workflow PASSED [  1%]
tests/e2e/test_application_workflow.py::TestCompleteApplicationWorkflows::test_inventory_rebalancing_workflow PASSED [  2%]
tests/e2e/test_application_workflow.py::TestCompleteApplicationWorkflows::test_new_warehouse_setup_workflow PASSED [  2%]
tests/e2e/test_application_workflow.py::TestCompleteApplicationWorkflows::test_supplier_integration_workflow PASSED [  3%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_admin_operations_workflow PASSED [  4%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_complete_inventory_workflow PASSED [  4%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_complete_supplier_workflow PASSED [  5%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_complete_user_workflow PASSED [  6%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_cross_module_integration PASSED [  6%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_data_persistence_and_retrieval PASSED [  7%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_database_constraints_and_integrity PASSED [  8%]
tests/e2e/test_warehouse_system_integration.py::TestWarehouseSystemIntegration::test_error_handling_and_recovery PASSED [  8%]
tests/e2e/test_warehouse_system_integration.py::TestSystemPerformance::test_bulk_operations_performance PASSED [  9%]
tests/e2e/test_warehouse_system_integration.py::TestSystemPerformance::test_large_dataset_queries PASSED [ 10%]
tests/unit/test_config.py::TestConfigConstants::test_constant_values PASSED [ 11%]
tests/unit/test_config.py::TestConfigConstants::test_database_configuration PASSED [ 11%]
tests/unit/test_config.py::TestConfigConstants::test_debug_flags PASSED  [ 12%]
tests/unit/test_config.py::TestConfigConstants::test_file_paths PASSED   [ 13%]
tests/unit/test_config.py::TestConfigConstants::test_global_variables_initialization PASSED [ 13%]
tests/unit/test_config.py::TestConfigConstants::test_inventory_configuration PASSED [ 14%]
tests/unit/test_config.py::TestConfigConstants::test_supplier_configuration PASSED [ 15%]
tests/unit/test_config.py::TestConfigConstants::test_user_configuration PASSED [ 15%]
tests/unit/test_config.py::TestConfigFunctions::test_init_config PASSED  [ 16%]
tests/unit/test_config.py::TestConfigFunctions::test_init_config_output PASSED [ 17%]
tests/unit/test_config.py::TestConfigFunctions::test_setup_dirs PASSED   [ 17%]
tests/unit/test_config.py::TestConfigFunctions::test_setup_dirs_existing PASSED [ 18%]
tests/unit/test_config.py::TestConfigDirectoryCreation::test_actual_directory_creation PASSED [ 19%]
tests/unit/test_config.py::TestConfigIntegration::test_config_attribute_access PASSED [ 20%]
tests/unit/test_config.py::TestConfigIntegration::test_config_importability PASSED [ 20%]
tests/unit/test_config.py::TestConfigIntegration::test_config_modification PASSED [ 21%]
tests/unit/test_config.py::TestConfigIntegration::test_global_variable_modification PASSED [ 22%]
tests/unit/test_config.py::TestConfigValidation::test_numeric_values_positive PASSED [ 22%]
tests/unit/test_config.py::TestConfigValidation::test_string_values_non_empty PASSED [ 23%]
tests/unit/test_config.py::TestConfigValidation::test_threshold_relationships PASSED [ 24%]
tests/unit/test_config.py::TestConfigErrorHandling::test_missing_attribute_access PASSED [ 24%]
tests/unit/test_config.py::TestConfigErrorHandling::test_setup_dirs_error_handling PASSED [ 25%]
tests/unit/test_database.py::TestDatabaseFunctions::test_add_product PASSED [ 26%]
tests/unit/test_database.py::TestDatabaseFunctions::test_add_supplier PASSED [ 26%]
tests/unit/test_database.py::TestDatabaseFunctions::test_add_user PASSED [ 27%]
tests/unit/test_database.py::TestDatabaseFunctions::test_authenticate_user PASSED [ 28%]
tests/unit/test_database.py::TestDatabaseFunctions::test_close_database PASSED [ 28%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_all_products PASSED [ 29%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_all_suppliers PASSED [ 30%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_all_users PASSED [ 31%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_connection PASSED [ 31%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_low_stock_items PASSED [ 32%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_product_by_id PASSED [ 33%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_transaction_history PASSED [ 33%]
tests/unit/test_database.py::TestDatabaseFunctions::test_get_user_by_id PASSED [ 34%]
tests/unit/test_database.py::TestDatabaseFunctions::test_init_database PASSED [ 35%]
tests/unit/test_database.py::TestDatabaseFunctions::test_search_products PASSED [ 35%]
tests/unit/test_database.py::TestDatabaseFunctions::test_update_stock PASSED [ 36%]
tests/unit/test_database.py::TestDatabaseEdgeCases::test_empty_database_queries PASSED [ 37%]
tests/unit/test_database.py::TestDatabaseEdgeCases::test_sql_injection_protection PASSED [ 37%]
tests/unit/test_database.py::TestDatabaseEdgeCases::test_update_stock_nonexistent_product PASSED [ 38%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_add_duplicate_sku PASSED [ 39%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_add_product_success PASSED [ 40%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_add_product_validation PASSED [ 40%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_add_remove_stock PASSED [ 41%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_bulk_update_stock PASSED [ 42%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_create_purchase_order PASSED [ 42%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_inventory_report PASSED [ 43%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_reorder_suggestions PASSED [ 44%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_search_inventory PASSED [ 44%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_stock_alerts PASSED [ 45%]
tests/unit/test_inventory_tracker.py::TestInventoryTracker::test_update_stock PASSED [ 46%]
tests/unit/test_inventory_tracker.py::TestInventoryUtilityFunctions::test_export_inventory_to_json PASSED [ 46%]
tests/unit/test_inventory_tracker.py::TestInventoryUtilityFunctions::test_get_inventory_summary PASSED [ 47%]
tests/unit/test_inventory_tracker.py::TestInventoryUtilityFunctions::test_get_top_products_by_value PASSED [ 48%]
tests/unit/test_inventory_tracker.py::TestInventoryTrackerEdgeCases::test_database_error_handling PASSED [ 48%]
tests/unit/test_inventory_tracker.py::TestInventoryTrackerEdgeCases::test_empty_inventory_operations PASSED [ 49%]
tests/unit/test_inventory_tracker.py::TestInventoryTrackerEdgeCases::test_export_file_error PASSED [ 50%]
tests/unit/test_inventory_tracker.py::TestInventoryTrackerEdgeCases::test_invalid_session PASSED [ 51%]
tests/unit/test_inventory_tracker.py::TestInventoryTrackerEdgeCases::test_operations_without_login PASSED [ 51%]
tests/unit/test_inventory_tracker.py::TestInventoryTrackerEdgeCases::test_update_nonexistent_product PASSED [ 52%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_add_supplier_success PASSED [ 53%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_add_supplier_validation PASSED [ 53%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_deactivate_supplier PASSED [ 54%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_generate_supplier_report PASSED [ 55%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_get_all_suppliers PASSED [ 55%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_get_supplier_products PASSED [ 56%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_sync_supplier_inventory PASSED [ 57%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_test_supplier_api PASSED [ 57%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_update_nonexistent_supplier PASSED [ 58%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_update_supplier PASSED [ 59%]
tests/unit/test_supplier_handler.py::TestSupplierHandler::test_update_supplier_partial PASSED [ 60%]
tests/unit/test_supplier_handler.py::TestSupplierUtilityFunctions::test_bulk_update_supplier_status PASSED [ 60%]
tests/unit/test_supplier_handler.py::TestSupplierUtilityFunctions::test_get_supplier_by_id PASSED [ 61%]
tests/unit/test_supplier_handler.py::TestSupplierUtilityFunctions::test_get_supplier_stats PASSED [ 62%]
tests/unit/test_supplier_handler.py::TestSupplierUtilityFunctions::test_search_suppliers PASSED [ 62%]
tests/unit/test_supplier_handler.py::TestSupplierHandlerEdgeCases::test_api_timeout_configuration PASSED [ 63%]
tests/unit/test_supplier_handler.py::TestSupplierHandlerEdgeCases::test_cache_behavior PASSED [ 64%]
tests/unit/test_supplier_handler.py::TestSupplierHandlerEdgeCases::test_database_error_handling PASSED [ 64%]
tests/unit/test_supplier_handler.py::TestSupplierHandlerEdgeCases::test_operations_without_login PASSED [ 65%]
tests/unit/test_user_manager.py::TestUserManager::test_activate_deactivate_user PASSED [ 66%]
tests/unit/test_user_manager.py::TestUserManager::test_change_password PASSED [ 66%]
tests/unit/test_user_manager.py::TestUserManager::test_get_current_user PASSED [ 67%]
tests/unit/test_user_manager.py::TestUserManager::test_is_admin PASSED   [ 68%]
tests/unit/test_user_manager.py::TestUserManager::test_list_all_users PASSED [ 68%]
tests/unit/test_user_manager.py::TestUserManager::test_login_failure PASSED [ 69%]
tests/unit/test_user_manager.py::TestUserManager::test_login_success PASSED [ 70%]
tests/unit/test_user_manager.py::TestUserManager::test_logout PASSED     [ 71%]
tests/unit/test_user_manager.py::TestUserManager::test_register_user_success PASSED [ 71%]
tests/unit/test_user_manager.py::TestUserManager::test_register_user_validation PASSED [ 72%]
tests/unit/test_user_manager.py::TestUserManager::test_update_user_info PASSED [ 73%]
tests/unit/test_user_manager.py::TestUserUtilityFunctions::test_get_recent_user_activity PASSED [ 73%]
tests/unit/test_user_manager.py::TestUserUtilityFunctions::test_get_user_stats PASSED [ 74%]
tests/unit/test_user_manager.py::TestUserUtilityFunctions::test_session_management PASSED [ 75%]
tests/unit/test_user_manager.py::TestUserManagerEdgeCases::test_database_error_handling PASSED [ 75%]
tests/unit/test_user_manager.py::TestUserManagerEdgeCases::test_login_with_inactive_user PASSED [ 76%]
tests/unit/test_user_manager.py::TestUserManagerEdgeCases::test_multiple_login_attempts PASSED [ 77%]
tests/unit/test_user_manager.py::TestUserManagerEdgeCases::test_operations_without_login PASSED [ 77%]
tests/unit/test_utils.py::TestUtilityFunctions::test_calculate_percentage PASSED [ 78%]
tests/unit/test_utils.py::TestUtilityFunctions::test_create_backup_filename PASSED [ 79%]
tests/unit/test_utils.py::TestUtilityFunctions::test_format_currency PASSED [ 80%]
tests/unit/test_utils.py::TestUtilityFunctions::test_format_date PASSED  [ 80%]
tests/unit/test_utils.py::TestUtilityFunctions::test_generate_random_string PASSED [ 81%]
tests/unit/test_utils.py::TestUtilityFunctions::test_hash_string PASSED  [ 82%]
tests/unit/test_utils.py::TestUtilityFunctions::test_round_to_two_decimals PASSED [ 82%]
tests/unit/test_utils.py::TestUtilityFunctions::test_sanitize_string PASSED [ 83%]
tests/unit/test_utils.py::TestUtilityFunctions::test_validate_email PASSED [ 84%]
tests/unit/test_utils.py::TestUtilityFunctions::test_validate_phone PASSED [ 84%]
tests/unit/test_utils.py::TestDataExporter::test_export_empty_data PASSED [ 85%]
tests/unit/test_utils.py::TestDataExporter::test_export_file_error PASSED [ 86%]
tests/unit/test_utils.py::TestDataExporter::test_export_to_csv PASSED    [ 86%]
tests/unit/test_utils.py::TestDataExporter::test_export_to_json PASSED   [ 87%]
tests/unit/test_utils.py::TestDataExporter::test_export_to_txt PASSED    [ 88%]
tests/unit/test_utils.py::TestConfigHelper::test_get_config_value PASSED [ 88%]
tests/unit/test_utils.py::TestConfigHelper::test_set_config_value PASSED [ 89%]
tests/unit/test_utils.py::TestFileHelper::test_backup_file PASSED        [ 90%]
tests/unit/test_utils.py::TestFileHelper::test_backup_nonexistent_file PASSED [ 91%]
tests/unit/test_utils.py::TestFileHelper::test_cleanup_nonexistent_directory PASSED [ 91%]
tests/unit/test_utils.py::TestFileHelper::test_cleanup_temp_files PASSED [ 92%]
tests/unit/test_utils.py::TestFileHelper::test_ensure_directory_exists PASSED [ 93%]
tests/unit/test_utils.py::TestSpecializedFunctions::test_calculate_volume PASSED [ 93%]
tests/unit/test_utils.py::TestSpecializedFunctions::test_generate_sku PASSED [ 94%]
tests/unit/test_utils.py::TestSpecializedFunctions::test_parse_dimensions PASSED [ 95%]
tests/unit/test_utils.py::TestSpecializedFunctions::test_validation_helpers PASSED [ 95%]
tests/unit/test_utils.py::TestErrorHandling::test_handle_error PASSED    [ 96%]
tests/unit/test_utils.py::TestErrorHandling::test_success_response PASSED [ 97%]
tests/unit/test_utils.py::TestLoggingFunctions::test_log_message PASSED  [ 97%]
tests/unit/test_utils.py::TestLoggingFunctions::test_log_message_file_error PASSED [ 98%]
tests/unit/test_utils.py::TestGlobalInstances::test_global_instances PASSED [ 99%]
tests/unit/test_utils.py::TestGlobalInstances::test_init_utils PASSED    [100%]

============================= 145 passed in 10.14s =============================
