Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
AmpScan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Joshua Steer
AmpScan
Commits
e0416485
Commit
e0416485
authored
5 years ago
by
jack-parsons
Browse files
Options
Downloads
Patches
Plain Diff
Testing doctest failure (should fail)
parent
85d04c88
No related branches found
No related tags found
1 merge request
!23
Merge in Jack's changes
Pipeline
#862
failed
5 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
AmpScan/core.py
+6
-3
6 additions, 3 deletions
AmpScan/core.py
tests/doctests.py
+8
-0
8 additions, 0 deletions
tests/doctests.py
with
15 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
1
View file @
e0416485
unittests
:
unittests
:
script
:
python -m unittest discover tests -v
script
:
python -m unittest discover tests -v
doctests
:
doctests
:
script
:
python
-m doctest -v AmpScan/core
.py
script
:
python
/tests/doctests
.py
This diff is collapsed.
Click to expand it.
AmpScan/core.py
+
6
−
3
View file @
e0416485
...
@@ -37,7 +37,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
...
@@ -37,7 +37,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
Examples
Examples
-------
-------
>>>
import
AmpScan
>>>
import
AmpScan
>>>
filename
=
"
../tests/stl_file.stl
"
>>>
import
os
>>>
filename
=
os
.
getcwd
()
+
"
\\
tests
\\
stl_file.stl
"
>>>
amp
=
AmpObject
(
filename
)
>>>
amp
=
AmpObject
(
filename
)
"""
"""
...
@@ -150,7 +151,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
...
@@ -150,7 +151,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
Examples
Examples
--------
--------
>>>
filename
=
"
../tests/stl_file.stl
"
>>>
import
os
>>>
filename
=
os
.
getcwd
()
+
"
\\
tests
\\
stl_file.stl
"
>>>
amp
=
AmpObject
(
filename
,
unify
=
False
)
>>>
amp
=
AmpObject
(
filename
,
unify
=
False
)
>>>
amp
.
vert
.
shape
>>>
amp
.
vert
.
shape
(
44832
,
3
)
(
44832
,
3
)
...
@@ -347,7 +349,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
...
@@ -347,7 +349,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
Examples
Examples
--------
--------
>>>
filename
=
"
../tests/stl_file.stl
"
>>>
import
os
>>>
filename
=
os
.
getcwd
()
+
"
\\
tests
\\
stl_file.stl
"
>>>
amp
=
AmpObject
(
filename
)
>>>
amp
=
AmpObject
(
filename
)
>>>
ang
=
[
np
.
pi
/
2
,
-
np
.
pi
/
4
,
np
.
pi
/
3
]
>>>
ang
=
[
np
.
pi
/
2
,
-
np
.
pi
/
4
,
np
.
pi
/
3
]
>>>
amp
.
rotateAng
(
ang
,
ang
=
'
rad
'
)
>>>
amp
.
rotateAng
(
ang
,
ang
=
'
rad
'
)
...
...
This diff is collapsed.
Click to expand it.
tests/doctests.py
0 → 100644
+
8
−
0
View file @
e0416485
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment