tests.unit_tests.config.validation.test_any_used#

Functions

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_none_used

Test the validation when no elements are used.

test_use_value_used

Test the validation when a :class: ~yawning_titan.config.groups.core.UseValueGroup is used.

test_use_value_used_and_bool_item_true

Test the validation when a :class: ~yawning_titan.config.groups.core.UseValueGroup is used and :class: ~yawning_titan.config.item_types.bool_item.BoolItem.

Classes

Group

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

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

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

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_used.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_used.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_used.test_use_value_used(test_group)[source]#

Test the validation when a :class: ~yawning_titan.config.groups.core.UseValueGroup is used.

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

Test the validation when a :class: ~yawning_titan.config.groups.core.UseValueGroup is used and :class: ~yawning_titan.config.item_types.bool_item.BoolItem.

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

Test the validation when no elements are used.