tests.unit_tests.config.validation.test_any_non_zero#

Functions

nested_group

A nested 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_all_zero

Test the validation when no items are above 0.

test_all_zero_or_none

Test the validation when no items are above 0 and some are None.

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_multiple_items_above_zero

Test the validation when multiple items are above 0.

test_non_numeric_type

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

test_single_item_above_zero

Test the validation when a single item is above 0.

Classes

Group

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

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

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

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_non_zero.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_non_zero.nested_group()[source]#

A nested 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_non_zero.test_all_zero(test_group)[source]#

Test the validation when no items are above 0.

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

Test the validation when no items are above 0 and some are None.

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

Test the validation when a single item is above 0.

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

Test the validation when multiple items are above 0.

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

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