

@classmethod
def setUpClass(cls):
    super(MistralValidationControllerTest, cls).setUpClass()
    for (_, fixture) in six.iteritems(FIXTURES['runners']):
        instance = RunnerTypeAPI(**fixture)
        RunnerType.add_or_update(RunnerTypeAPI.to_model(instance))
    for (_, fixture) in six.iteritems(FIXTURES['actions']):
        instance = ActionAPI(**fixture)
        Action.add_or_update(ActionAPI.to_model(instance))

dataset/ETHPy150Open StackStorm/st2/st2api/tests/unit/controllers/exp/test_validator_mistral.py MistralValidationControllerTest.setUpClass/original