def _get_trigger_instance_db_from_file(self, file_path):
    data = self._meta_loader.load(file_path=file_path)
    instance = TriggerInstanceDB(**data)
    instance.id = 'rule_tester_instance'
    trigger_ref = ResourceReference.from_string_reference(instance['trigger'])
    trigger_db = TriggerDB(pack=trigger_ref.pack, name=trigger_ref.name, type=trigger_ref.ref)
    return (instance, trigger_db)
def _get_trigger_instance_db_from_file(self, file_path):
    data = self._meta_loader.load(file_path=file_path)
    instance = TriggerInstanceDB(**data)
    instance.id = 'rule_tester_instance'
    trigger_ref = ResourceReference.from_string_reference(instance['trigger'])
    trigger_db = TriggerDB(pack=trigger_ref.pack, name=trigger_ref.name, type=trigger_ref.ref)
    return (instance, trigger_db)