do not let unit test for revolution fail if refinement option is on

This commit is contained in:
wmayer
2017-06-19 21:09:43 +02:00
parent 376b841623
commit 0ef4f25bc5

View File

@@ -71,7 +71,8 @@ class PartDesignRevolveTestCases(unittest.TestCase):
self.Revolution.Reversed = 1
self.Body.addObject(self.Revolution)
self.Doc.recompute()
self.failUnless(len(self.Revolution.Shape.Faces) == 10)
# depending on if refinement is done we expect 8 or 10 faces
self.assertIn(len(self.Revolution.Shape.Faces), (8, 10))
def testGrooveFace(self):
self.Body = self.Doc.addObject('PartDesign::Body','Body')