Arch: Fixed test to work without the Drawing module

This commit is contained in:
Yorik van Havre
2022-06-30 11:38:22 +02:00
parent 59b945dcc3
commit e916f8afbb
2 changed files with 3 additions and 2 deletions

View File

@@ -85,7 +85,8 @@ def makeSectionPlane(objectslist=None,name="Section"):
def makeSectionView(section,name="View"):
"""makeSectionView(section) : Creates a Drawing view of the given Section Plane
"""OBSOLETE
makeSectionView(section) : Creates a Drawing view of the given Section Plane
in the active Page object (a new page will be created if none exists"""
page = None

View File

@@ -604,7 +604,7 @@ class ArchTest(unittest.TestCase):
def testSection(self):
App.Console.PrintLog ('Checking Arch Section...\n')
s = Arch.makeSectionPlane([])
v = Arch.makeSectionView(s)
#v = Arch.makeSectionView(s) # obsolete, uses the Drawing module
self.failUnless(v,"Arch Section failed")
def testSpace(self):