tests.unit_tests.config.core.test_config_item#

Functions

test_assign_incorrect_properties

Test item types raise an :class: ~yawning_titan.exceptions.TypeError error when using incorrect property types.

test_assignment

Test the ConfigItem calls validation on setting the value and that the value is updated.

test_set_value

Test the :method: ~yawning_titan.config.core.ConfigItem.set_value method does not validate the item.

test_to_dict

Test the ConfigItem can represent itself as a dictionary.

tests.unit_tests.config.core.test_config_item.test_to_dict()[source]#

Test the ConfigItem can represent itself as a dictionary.

tests.unit_tests.config.core.test_config_item.test_assignment()[source]#

Test the ConfigItem calls validation on setting the value and that the value is updated.

tests.unit_tests.config.core.test_config_item.test_set_value()[source]#

Test the :method: ~yawning_titan.config.core.ConfigItem.set_value method does not validate the item.

tests.unit_tests.config.core.test_config_item.test_assign_incorrect_properties(item, properties)[source]#

Test item types raise an :class: ~yawning_titan.exceptions.TypeError error when using incorrect property types.