Toponaming: adjust tests

This commit is contained in:
bgbsww
2024-05-18 12:55:15 -04:00
committed by Chris Hennes
parent a17bf278c4
commit 9decb98c71
3 changed files with 4 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ Bas Ruigrok (Rexbas)
bejant
Benjamin Alterauge
Bernd Hahnebach
bgbsww
blobfish (tanderson69)
bluecd
Brad Collette (sliptonic)

View File

@@ -387,7 +387,7 @@ class TopoShapeTest(unittest.TestCase, TopoShapeAssertions):
# math.radians(math.degrees(360)%180) * 2 appears to have been applied, which
# looks suspiciously like a substantial bug in OCCT.
# Assert Shape
self.assertBounds(surface1, App.BoundBox(-5, -2.72011, 0, 5, 5, 6.28319), precision=3)
self.assertBounds(surface1, App.BoundBox(-5, -2.72011, 0, 5, 5, 6.28319), precision=2)
del surface1
def testAppPartMakeLoft(self):

View File

@@ -580,7 +580,8 @@ class TestTopologicalNamingProblem(unittest.TestCase):
self.Doc.recompute()
# Assert
self.assertEqual(len(body.Shape.childShapes()), 1)
self.assertEqual(body.Shape.childShapes()[0].ElementMapSize, 30)
# The next size can vary based on tOCCT version (26 or 30), so we accept having entries.
self.assertGreaterEqual(body.Shape.childShapes()[0].ElementMapSize, 26)
def testPartDesignElementMapPocket(self):
pass # TODO