Fix testToSVG (search string was too detailed and therefore OCC version specific)

This commit is contained in:
Adam Urbanczyk
2017-09-02 14:50:53 +02:00
parent db65cef814
commit 4086d923f5

View File

@ -97,7 +97,7 @@ class TestCadQuery(BaseTest):
r_str = r.toSvg() r_str = r.toSvg()
# Make sure that a couple of sections from the SVG output make sense # Make sure that a couple of sections from the SVG output make sense
self.assertTrue(r_str.index('path d=" M 2.35965 -2.27987 L 4.0114 -3.23936 "') > 0) self.assertTrue(r_str.index('path d="M') > 0)
self.assertTrue(r_str.index('line x1="30" y1="-30" x2="58" y2="-15" stroke-width="3"') > 0) self.assertTrue(r_str.index('line x1="30" y1="-30" x2="58" y2="-15" stroke-width="3"') > 0)
def testCubePlugin(self): def testCubePlugin(self):