def _test(cls, target, context, **kwargs): test_result = super()._test(target, context, **kwargs) if not test_result: return test_result if not StatePickerEnumerationStrategy.has_valid_choice(target, context, state=cls.state): return TestResult(False, 'No valid choice in State Picker Enumeration Strategy.') return TestResult.TRUE
def __init__(self, *args, **kwargs): self._combine_data = None self._collectible_data = None choice_enumeration_strategy = StatePickerEnumerationStrategy() super().__init__( *args, choice_enumeration_strategy=choice_enumeration_strategy, **kwargs)
def __init__(self, *args, **kwargs): super().__init__(choice_enumeration_strategy=StatePickerEnumerationStrategy(), *args, **kwargs)