Fix examples and start testing them (#609)

* Fix examples

* Added test for examples

* Fix example testing code

* Sweep example fix

* Reformat examples

* Test examples from the docs too

* Add docutils to the test requirements

* Example test fix on win+cleanup

* Use union
This commit is contained in:
Adam Urbańczyk
2021-01-31 19:00:21 +01:00
committed by GitHub
parent 68bac660a2
commit 94e0976119
8 changed files with 84 additions and 10 deletions

View File

@ -874,7 +874,7 @@ A Parametric Enclosure
topOfLid = topOfLid.rotateAboutCenter((1,0,0),180)
#return the combined result
result =topOfLid.combineSolids(bottom)
result =topOfLid.union(bottom)
.. topic:: Api References
@ -893,7 +893,7 @@ A Parametric Enclosure
* :py:meth:`Workplane.workplane`
* :py:meth:`Workplane.fillet`
* :py:meth:`Workplane.cut`
* :py:meth:`Workplane.combineSolids`
* :py:meth:`Workplane.union`
* :py:meth:`Workplane.rotateAboutCenter`
* :py:meth:`Workplane.cboreHole`
* :py:meth:`Workplane.cskHole`