tests.unit_tests.config.validation.test_any_true#

Functions

test_bool_item_multiple_true

Test the validation when a :class: ~yawning_titan.config.item_types.bool_item.BoolItem is True.

test_bool_item_true

Test the validation when a :class: ~yawning_titan.config.item_types.bool_item.BoolItem is True.

test_group

A test group with a mixture of :class: ~yawning_titan.config.item_types.bool_item.BoolItem's and :class: ~yawning_titan.config.groups.core.UseValueGroup's.

test_non_numeric_type

Test the validation when an item is not of a numeric type.

test_none_used

Test the validation when no elements are used.

Classes

Group

Basic implementation of validation group :class: ~yawning_titan.config.groups.validation.AnyTrueGroup.

class tests.unit_tests.config.validation.test_any_true.Group(doc=None)[source]#

Basic implementation of validation group :class: ~yawning_titan.config.groups.validation.AnyTrueGroup.

The ConfigGroup constructor.

Parameters:

doc – The groups doc.

__init__(doc=None)[source]#

The ConfigGroup constructor.

Parameters:

doc – The groups doc.

tests.unit_tests.config.validation.test_any_true.test_group()[source]#

A test group with a mixture of :class: ~yawning_titan.config.item_types.bool_item.BoolItem’s and :class: ~yawning_titan.config.groups.core.UseValueGroup’s.

tests.unit_tests.config.validation.test_any_true.test_bool_item_true(test_group)[source]#

Test the validation when a :class: ~yawning_titan.config.item_types.bool_item.BoolItem is True.

tests.unit_tests.config.validation.test_any_true.test_bool_item_multiple_true(test_group)[source]#

Test the validation when a :class: ~yawning_titan.config.item_types.bool_item.BoolItem is True.

tests.unit_tests.config.validation.test_any_true.test_none_used(test_group)[source]#

Test the validation when no elements are used.

tests.unit_tests.config.validation.test_any_true.test_non_numeric_type(test_group)[source]#

Test the validation when an item is not of a numeric type.