tests.unit_tests.config.validation.test_any_non_zero#
Functions
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 the validation when no items are above 0. |
|
Test the validation when no items are above 0 and some are None. |
|
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 the validation when multiple items are above 0. |
|
Test the validation when an item is not of a numeric type. |
|
Test the validation when a single item is above 0. |
Classes
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.
- 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.