Skip to content

Commit a4cb82d

Browse files
Use a different font for testing
This is a dummy PR to investigate build issues on azure
1 parent 45f8518 commit a4cb82d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/TestCadQuery.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1836,13 +1836,13 @@ def testText(self):
18361836
box = Workplane("XY" ).box(4, 4, 0.5)
18371837

18381838
obj1 = box.faces('>Z').workplane()\
1839-
.text('CQ 2.0',0.5,-.05,cut=True,halign='left',valign='bottom')
1839+
.text('CQ 2.0',0.5,-.05,cut=True,halign='left',valign='bottom', font='Sans')
18401840

18411841
#combined object should have smaller volume
18421842
self.assertGreater(box.val().Volume(),obj1.val().Volume())
18431843

18441844
obj2 = box.faces('>Z').workplane()\
1845-
.text('CQ 2.0',0.5,.05,cut=False,combine=True)
1845+
.text('CQ 2.0',0.5,.05,cut=False,combine=True, font='Sans')
18461846

18471847
#combined object should have bigger volume
18481848
self.assertLess(box.val().Volume(),obj2.val().Volume())
@@ -1851,7 +1851,7 @@ def testText(self):
18511851
self.assertEqual(len(obj2.faces('>Z').vals()),5)
18521852

18531853
obj3 = box.faces('>Z').workplane()\
1854-
.text('CQ 2.0',0.5,.05,cut=False,combine=False,halign='right',valign='top')
1854+
.text('CQ 2.0',0.5,.05,cut=False,combine=False,halign='right',valign='top', font='Sans')
18551855

18561856
#verify that the number of solids is correct
18571857
self.assertEqual(len(obj3.solids().vals()),5)

0 commit comments

Comments
 (0)