def test_part_not_embedded(self): cube = Box() cube.exporter('gltf')( os.path.join(self.foldername, 'cube.gltf'), embed=False, ) self.assertFilesizeNonZero(os.path.join(self.foldername, 'cube.gltf')) self.assertFilesizeNonZero(os.path.join(self.foldername, 'cube.bin'))
def test_export(self): cube = Box() self.assertEqual(os.stat(self.filename).st_size, 0) cube.exporter('amf')(self.filename) self.assertGreater(os.stat(self.filename).st_size, 0)
def test_export(self): cube = Box() self.assertFilesizeZero(self.filename) cube.exporter('svg')(self.filename) self.assertGreater(os.stat(self.filename).st_size, 0)
def test_export(self): cube = Box() self.assertFilesizeZero(self.filename) cube.exporter('stl')(self.filename) self.assertFilesizeNonZero(self.filename)