Add angularPrecision to export, exportShape and toString

Add tolerance and angularPrecision to TestExporters._exportBox and in
the call to exportShape.
This commit is contained in:
Wink Saville
2020-08-06 12:20:12 -07:00
parent 4f0f333ad8
commit 462dcea6c4
3 changed files with 19 additions and 15 deletions

View File

@ -12,7 +12,7 @@ from tests import BaseTest
class TestExporters(BaseTest):
def _exportBox(self, eType, stringsToFind):
def _exportBox(self, eType, stringsToFind, tolerance=0.1, angularPrecision=0.1):
"""
Exports a test object, and then looks for
all of the supplied strings to be in the result
@ -25,7 +25,7 @@ class TestExporters(BaseTest):
else:
s = io.StringIO()
exporters.exportShape(p, eType, s, 0.1)
exporters.exportShape(p, eType, s, tolerance=tolerance, angularPrecision=angularPrecision)
result = "{}".format(s.getvalue())