Beispiel #1
0
 def test_export_calc(self):
     tempdir = tempfile.mkdtemp()
     with Print.patch() as p:
         export('hcurves', tempdir, self.calc_id)
     [fname] = os.listdir(tempdir)
     self.assertIn(str(fname), str(p))
     shutil.rmtree(tempdir)
 def test_export_calc(self):
     tempdir = tempfile.mkdtemp()
     with Print.patch() as p:
         export(self.datastore.calc_id, 'sitemesh', export_dir=tempdir)
     fnames = [os.path.join(tempdir, 'sitemesh.csv')]
     self.assertIn(str(fnames), str(p))
     shutil.rmtree(tempdir)
 def test_export_calc(self):
     tempdir = tempfile.mkdtemp()
     with Print.patch() as p:
         export(self.datastore.calc_id, 'hcurves', export_dir=tempdir)
     [fname] = os.listdir(tempdir)
     self.assertIn(str(fname), str(p))
     shutil.rmtree(tempdir)
Beispiel #4
0
 def test_export_calc(self):
     with Print.patch() as p:
         export(self.datastore.calc_id, 'sitemesh', export_dir='/tmp')
     self.assertIn("['/tmp/sitemesh.csv']", str(p))