def _run(self): result = robotapi.TestDataDirectory(source=os.path.dirname(self._path)) result.initfile = self._path robotapi.FromFilePopulator(result).populate(self._path) return result
def _load_resource(self, path, report_status): r = robotapi.ResourceFile(path) if os.stat(path)[6] != 0 and report_status: return r.populate() robotapi.FromFilePopulator(r).populate(r.source) return r