def save(self, outdir): """ Creates outdir/<id_tc>.pickle and outdir/<>.yaml """ filename_pickle = self.id_tc + '.tc.pickle' filename_yaml = self.id_tc + '.tc.yaml' description = { 'id': self.id_tc, 'desc': 'Automatically generated test case', 'code': ['diffeoplan.library.load_pickle', {'file:pickle': filename_pickle}] } filename_pickle = os.path.join(outdir, filename_pickle) filename_yaml = os.path.join(outdir, filename_yaml) logger.info('Writing to %r ' % friendly_path(filename_pickle)) safe_pickle_dump(self, filename_pickle) write_entries([description], filename_yaml)
def save(self, outdir): """ Creates outdir/<id_tc>.pickle and outdir/<>.yaml """ filename_pickle = self.id_tc + '.tc.pickle' filename_yaml = self.id_tc + '.tc.yaml' description = { 'id': self.id_tc, 'desc': 'Automatically generated test case', 'code': [ 'diffeoplan.library.load_pickle', { 'file:pickle': filename_pickle } ] } filename_pickle = os.path.join(outdir, filename_pickle) filename_yaml = os.path.join(outdir, filename_yaml) logger.info('Writing to %r ' % friendly_path(filename_pickle)) safe_pickle_dump(self, filename_pickle) write_entries([description], filename_yaml)