def create_default_source_model(context): """ Create a default source model object :param context: shared datastore across different jobs in a pipeline """ context.sm_definitions = [default_area_source()] LOGGER.debug("* Eq number source models: %s" % len(context.sm_definitions))
def test_create_default_source_model(self): default_as = [default_area_source()] create_default_source_model(self.context_jobs) self.assertEqual(default_as, self.context_jobs.sm_definitions)