Fix various whitespace issues

This commit is contained in:
luzpaz
2023-03-19 12:09:59 +00:00
committed by Uwe
parent 27ed6d6349
commit d5a313146f
5 changed files with 21 additions and 21 deletions

View File

@@ -32,9 +32,9 @@ class DrawViewDimensionTest(unittest.TestCase):
self.view1.Source = [self.document.Sphere]
self.view1.X = 220
self.view1.Y = 150
self.document.recompute()
#wait for threads to complete before checking result
loop = QtCore.QEventLoop()
@@ -53,7 +53,7 @@ class DrawViewDimensionTest(unittest.TestCase):
"""Tests if a length dimension can be added to view"""
# make length dimension
print("making length dimension")
dimension = self.document.addObject("TechDraw::DrawViewDimension", "Dimension")
self.page.addView(dimension)
dimension.Type = "Distance"

View File

@@ -6,7 +6,7 @@ def createPageWithSVGTemplate(doc=None):
"""Returns a page with an SVGTemplate added on the ActiveDocument"""
path = os.path.dirname(os.path.abspath(__file__))
templateFileSpec = path + "/TestTemplate.svg"
if not doc:
doc = FreeCAD.ActiveDocument