Use a different font for testing

This is a dummy PR to investigate build issues on azure
This commit is contained in:
Adam Urbańczyk
2019-06-10 20:35:23 +02:00
committed by GitHub
parent 45f8518466
commit a4cb82d148

View File

@ -1836,13 +1836,13 @@ class TestCadQuery(BaseTest):
box = Workplane("XY" ).box(4, 4, 0.5) box = Workplane("XY" ).box(4, 4, 0.5)
obj1 = box.faces('>Z').workplane()\ obj1 = box.faces('>Z').workplane()\
.text('CQ 2.0',0.5,-.05,cut=True,halign='left',valign='bottom') .text('CQ 2.0',0.5,-.05,cut=True,halign='left',valign='bottom', font='Sans')
#combined object should have smaller volume #combined object should have smaller volume
self.assertGreater(box.val().Volume(),obj1.val().Volume()) self.assertGreater(box.val().Volume(),obj1.val().Volume())
obj2 = box.faces('>Z').workplane()\ obj2 = box.faces('>Z').workplane()\
.text('CQ 2.0',0.5,.05,cut=False,combine=True) .text('CQ 2.0',0.5,.05,cut=False,combine=True, font='Sans')
#combined object should have bigger volume #combined object should have bigger volume
self.assertLess(box.val().Volume(),obj2.val().Volume()) self.assertLess(box.val().Volume(),obj2.val().Volume())
@ -1851,7 +1851,7 @@ class TestCadQuery(BaseTest):
self.assertEqual(len(obj2.faces('>Z').vals()),5) self.assertEqual(len(obj2.faces('>Z').vals()),5)
obj3 = box.faces('>Z').workplane()\ obj3 = box.faces('>Z').workplane()\
.text('CQ 2.0',0.5,.05,cut=False,combine=False,halign='right',valign='top') .text('CQ 2.0',0.5,.05,cut=False,combine=False,halign='right',valign='top', font='Sans')
#verify that the number of solids is correct #verify that the number of solids is correct
self.assertEqual(len(obj3.solids().vals()),5) self.assertEqual(len(obj3.solids().vals()),5)