tests.test_embed_macros module

Unit tests for embed macro functionality.

This module tests the embed macro creation, editing, and execution features.

class tests.test_embed_macros.TestEmbedMacros(methodName='runTest')[source]

Bases: TestCase

Test cases for embed macro functionality.

setUp()[source]

Set up test fixtures before each test method.

tearDown()[source]

Clean up after each test method.

test_embed_macro_structure()[source]

Test that embed macros have the correct structure.

test_backward_compatibility_with_text_macros()[source]

Test that text macros still work alongside embed macros.

test_embed_field_inline_property()[source]

Test that embed fields support inline property correctly.

test_empty_embed_data_validation()[source]

Test that empty embed data is properly handled.

test_partial_embed_data_validation()[source]

Test that partial embed data is properly handled.

test_embed_color_parsing()[source]

Test that embed colors are properly parsed.

test_embed_macro_modification_tracking()[source]

Test that embed macro modifications are tracked.