Skip to content

Commit

Permalink
Use a different font for testing
Browse files Browse the repository at this point in the history
This is a dummy PR to investigate build issues on azure
  • Loading branch information
adam-urbanczyk authored Jun 10, 2019
1 parent 45f8518 commit a4cb82d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCadQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -1836,13 +1836,13 @@ def testText(self):
box = Workplane("XY" ).box(4, 4, 0.5)

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
self.assertGreater(box.val().Volume(),obj1.val().Volume())

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
self.assertLess(box.val().Volume(),obj2.val().Volume())
Expand All @@ -1851,7 +1851,7 @@ def testText(self):
self.assertEqual(len(obj2.faces('>Z').vals()),5)

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
self.assertEqual(len(obj3.solids().vals()),5)
Expand Down

0 comments on commit a4cb82d

Please sign in to comment.