Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
8b0d510a
Commit
8b0d510a
authored
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
added docstring in unit tests
parent
70822dae
dev
main
No related merge requests found
Pipeline
#157
passed with stages
in 13 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_flip_image.py
+1
-1
tests/test_flip_image.py
tests/test_other_functions.py
+1
-0
tests/test_other_functions.py
with
2 additions
and
1 deletion
+2
-1
tests/test_flip_image.py
+
1
-
1
View file @
8b0d510a
...
...
@@ -7,7 +7,7 @@ from csst_proto.top_level_interface import flip_image, read_test_image
class
FlipImageTestCase
(
unittest
.
TestCase
):
def
test_flip_image
(
self
):
# flip
test image
"""
test
flip
image
"""
self
.
assertTrue
(
np
.
all
(
flip_image
(
read_test_image
())
==
np
.
array
([[
4
,
3
],
[
2
,
1
]]))
)
...
...
This diff is collapsed.
Click to expand it.
tests/test_other_functions.py
+
1
-
0
View file @
8b0d510a
...
...
@@ -4,6 +4,7 @@ from csst_proto.top_level_interface import a_demo_function
class
TestCaseDemoFunction
(
unittest
.
TestCase
):
""" test demo function """
def
test_demo_function
(
self
):
# flip test image
self
.
assertTrue
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets