Removed an unneeded import and fixed tab-space mixing issues.
This commit is contained in:
parent
e51b54d6c4
commit
19c84868a8
|
@ -20,7 +20,7 @@
|
||||||
a string containing the model content.
|
a string containing the model content.
|
||||||
"""
|
"""
|
||||||
import cadquery
|
import cadquery
|
||||||
from .shapes import Shape, Compound
|
from .shapes import Shape
|
||||||
|
|
||||||
import FreeCAD
|
import FreeCAD
|
||||||
import Part
|
import Part
|
||||||
|
|
|
@ -16,9 +16,9 @@ if sys.platform.startswith("win"):
|
||||||
else:
|
else:
|
||||||
OUTDIR = "/tmp"
|
OUTDIR = "/tmp"
|
||||||
|
|
||||||
class TestImporters(BaseTest):
|
|
||||||
|
|
||||||
def importBox(self, importType,fileName):
|
class TestImporters(BaseTest):
|
||||||
|
def importBox(self, importType, fileName):
|
||||||
"""
|
"""
|
||||||
Exports a simple box to a STEP file and then imports it again
|
Exports a simple box to a STEP file and then imports it again
|
||||||
:param importType: The type of file we're importing (STEP, STL, etc)
|
:param importType: The type of file we're importing (STEP, STL, etc)
|
||||||
|
@ -27,7 +27,7 @@ class TestImporters(BaseTest):
|
||||||
#We're importing a STEP file
|
#We're importing a STEP file
|
||||||
if importType == importers.ImportTypes.STEP:
|
if importType == importers.ImportTypes.STEP:
|
||||||
#We first need to build a simple shape to export
|
#We first need to build a simple shape to export
|
||||||
shape = Workplane("XY").box(1,2,3).val()
|
shape = Workplane("XY").box(1, 2, 3).val()
|
||||||
|
|
||||||
#Export the shape to a temporary file
|
#Export the shape to a temporary file
|
||||||
shape.exportStep(fileName)
|
shape.exportStep(fileName)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user