def test_init_app_sets_default_config_if_not_present(self): self.test_app.config[VERIFY_SIGNATURE_APP_CONFIG] = False test_skill_adapter = SkillAdapter( skill=self.mock_skill, skill_id=self.skill_id) test_skill_adapter.init_app(self.test_app) self.check_config_set(self.test_app, signature_config=False)
def test_init_app_sets_multiple_ext_with_skill_ids(self): self.test_app.extensions[EXTENSION_NAME] = {} self.test_app.extensions[EXTENSION_NAME]["test"] = "value" test_skill_adapter = SkillAdapter( skill=self.mock_skill, skill_id=self.skill_id) test_skill_adapter.init_app(self.test_app) self.check_extension_mapping_set(self.test_app, "test", "value")
def test_init_app_sets_app_configurations(self): self.check_config_not_set(self.test_app) self.check_extension_mapping_not_set(self.test_app) test_skill_adapter = SkillAdapter( skill=self.mock_skill, skill_id=self.skill_id) test_skill_adapter.init_app(self.test_app) self.check_config_set(self.test_app) self.check_extension_mapping_set(self.test_app)