tests package
Submodules
- tests.test_bot module
TestWeakAurasBot
TestWeakAurasBot.setUp()
TestWeakAurasBot.tearDown()
TestWeakAurasBot.test_bot_initialization()
TestWeakAurasBot.test_bot_initialization_default_storage()
TestWeakAurasBot.test_sanitize_server_name()
TestWeakAurasBot.test_get_server_folder_new()
TestWeakAurasBot.test_load_server_macros_no_file()
TestWeakAurasBot.test_load_server_macros_with_file()
TestWeakAurasBot.test_save_server_macros()
TestWeakAurasBot.test_has_admin_access_with_role()
TestWeakAurasBot.test_has_admin_access_without_role()
TestWeakAurasBot.test_has_admin_access_no_roles()
TestWeakAurasBot.test_create_embed_basic()
TestWeakAurasBot.test_create_embed_with_custom_footer()
TestWeakAurasBot.test_create_embed_with_color()
TestWeakAurasBot.test_load_server_macros_invalid_json()
TestWeakAurasBot.test_save_server_macros_creates_directory()
TestWeakAurasBot.test_get_server_folder_existing()
TestWeakAurasBot.test_sanitize_server_name_unicode()
TestWeakAurasBot.test_has_admin_access_with_permissions()
TestWeakAurasBot.test_has_admin_access_multiple_roles()
TestWeakAurasBot.test_load_embed_macro()
TestWeakAurasBot.test_save_embed_macro()
TestWeakAurasBot.test_mixed_macro_types()
- tests.test_color_role_commands module
TestColorRoleUtilities
MockRole
MockGuild
TestFindExistingColorRole
TestFindExistingColorRole.test_find_existing_color_role_exact_match()
TestFindExistingColorRole.test_find_existing_color_role_case_insensitive()
TestFindExistingColorRole.test_find_existing_color_role_no_match()
TestFindExistingColorRole.test_find_existing_color_role_non_hex_roles_ignored()
TestFindExistingColorRole.test_find_existing_color_role_multiple_formats()
- tests.test_django_permissions module
TestDjangoPermissions
TestDjangoPermissions.setUp()
TestDjangoPermissions.test_get_django_database_path_default()
TestDjangoPermissions.test_get_django_database_path_with_config()
TestDjangoPermissions.test_get_django_database_path_exception_handling()
TestDjangoPermissions.test_get_server_permission_config_no_database()
TestDjangoPermissions.test_get_permission_error_message_no_config()
TestDjangoPermissions.test_get_permission_error_message_with_config()
TestDjangoPermissions.test_permission_functions_exist()
TestDjangoPermissions.test_get_django_database_path_sqlite_prefix()
TestDjangoPermissions.test_get_django_database_path_yaml_parsing()
TestDjangoPermissions.test_get_django_database_path_non_sqlite()
TestDjangoPermissions.test_get_permission_error_message_different_permissions()
TestDjangoPermissions.test_get_permission_error_message_missing_attribute()
- tests.test_embed_macros module
TestEmbedMacros
TestEmbedMacros.setUp()
TestEmbedMacros.tearDown()
TestEmbedMacros.test_embed_macro_structure()
TestEmbedMacros.test_backward_compatibility_with_text_macros()
TestEmbedMacros.test_embed_field_inline_property()
TestEmbedMacros.test_empty_embed_data_validation()
TestEmbedMacros.test_partial_embed_data_validation()
TestEmbedMacros.test_embed_color_parsing()
TestEmbedMacros.test_embed_macro_modification_tracking()
- tests.test_help_commands module
TestHelpCommands
TestHelpCommands.test_command_categories_structure()
TestHelpCommands.test_create_help_embed_all_categories()
TestHelpCommands.test_create_help_embed_specific_category()
TestHelpCommands.test_create_help_embed_invalid_category()
TestHelpCommands.test_get_command_info_valid_commands()
TestHelpCommands.test_get_command_info_invalid_command()
TestHelpCommands.test_get_total_command_count()
TestHelpCommands.test_all_commands_have_unique_names()
TestHelpCommands.test_embed_field_limits()
TestHelpCommands.test_command_usage_examples_format()
TestHelpCommands.test_category_coverage()
- tests.test_macro_commands module
- tests.test_macro_functionality module
- tests.test_utils_logging module
TestLoggingUtils
TestLoggingUtils.test_get_logger_returns_logger()
TestLoggingUtils.test_get_logger_different_modules()
TestLoggingUtils.test_setup_logging_dev_environment()
TestLoggingUtils.test_setup_logging_prod_environment()
TestLoggingUtils.test_setup_logging_default_environment()
TestLoggingUtils.test_logger_hierarchy()
TestLoggingUtils.test_get_logger_with_empty_name()
TestLoggingUtils.test_get_logger_with_none_name()
Module contents
Test package for WeakAuras Discord Bot.
This package contains unit tests for all bot components including: - Bot functionality and slash commands - Macro management and storage - Server-specific data handling - Configuration and event handling