Beispiel #1
0
 def setup_class(self):
     model.Session.remove()
     CreateTestData.create()
     d = Dumper()
     ts = int(time())
     self.outpath = '/tmp/mytestdump-%s.js' % ts
     if os.path.exists(self.outpath):
         os.remove(self.outpath)
     d.dump_json(self.outpath)
Beispiel #2
0
 def setup_class(self):
     model.Session.remove()
     CreateTestData.create()
     d = Dumper()
     ts = int(time())
     self.outpath = '/tmp/mytestdump-%s.js' % ts
     if os.path.exists(self.outpath):
         os.remove(self.outpath)
     d.dump_json(self.outpath)