Skip to content
Snippets Groups Projects
Commit e0416485 authored by jack-parsons's avatar jack-parsons
Browse files

Testing doctest failure (should fail)

parent 85d04c88
No related branches found
No related tags found
1 merge request!23Merge in Jack's changes
Pipeline #862 failed
unittests:
script: python -m unittest discover tests -v
doctests:
script: python -m doctest -v AmpScan/core.py
script: python /tests/doctests.py
......@@ -37,7 +37,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
Examples
-------
>>> import AmpScan
>>> filename = "../tests/stl_file.stl"
>>> import os
>>> filename = os.getcwd()+"\\tests\\stl_file.stl"
>>> amp = AmpObject(filename)
"""
......@@ -150,7 +151,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
Examples
--------
>>> filename = "../tests/stl_file.stl"
>>> import os
>>> filename = os.getcwd()+"\\tests\\stl_file.stl"
>>> amp = AmpObject(filename, unify=False)
>>> amp.vert.shape
(44832, 3)
......@@ -347,7 +349,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
Examples
--------
>>> filename = "../tests/stl_file.stl"
>>> import os
>>> filename = os.getcwd()+"\\tests\\stl_file.stl"
>>> amp = AmpObject(filename)
>>> ang = [np.pi/2, -np.pi/4, np.pi/3]
>>> amp.rotateAng(ang, ang='rad')
......
import AmpScan.core as core
import AmpScan.trim as trim
if __name__ == '__main__':
import doctest
doctest.testmod(core, verbose=True)
doctest.testmod(trim, verbose=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment