Removed incorrectly used hash function from Vector and commented out a few non-critical test lines that break with FreeCAD daily.

This commit is contained in:
Jeremy Mack Wright 2015-10-23 17:31:06 -04:00
parent b0f5264fcd
commit 146ecd589b
2 changed files with 3 additions and 6 deletions

View File

@ -156,9 +156,6 @@ class Vector(object):
def projectToPlane(self):
raise NotImplementedError("Have not needed this yet, but FreeCAD supports it!")
def __hash__(self):
return self.wrapped.__hash__()
def __add__(self, v):
return self.add(v)

View File

@ -994,7 +994,7 @@ class TestCadQuery(BaseTest):
def testSphereDefaults(self):
s = Workplane("XY").sphere(10)
self.saveModel(s)
#self.saveModel(s) # Until FreeCAD fixes their sphere operation
self.assertEquals(1, s.solids().size())
self.assertEquals(1, s.faces().size())
@ -1006,13 +1006,13 @@ class TestCadQuery(BaseTest):
def testSpherePointList(self):
s = Workplane("XY").rect(4.0, 4.0, forConstruction=True).vertices().sphere(0.25, combine=False)
self.saveModel(s)
#self.saveModel(s) # Until FreeCAD fixes their sphere operation
self.assertEquals(4, s.solids().size())
self.assertEquals(4, s.faces().size())
def testSphereCombine(self):
s = Workplane("XY").rect(4.0, 4.0, forConstruction=True).vertices().sphere(0.25, combine=True)
self.saveModel(s)
#self.saveModel(s) # Until FreeCAD fixes their sphere operation
self.assertEquals(1, s.solids().size())
self.assertEquals(4, s.faces().size())