Skip to content
GitLab
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_common
Commits
13df314a
Commit
13df314a
authored
Dec 13, 2023
by
BO ZHANG
🏀
Browse files
add test for File class
parent
3fbc6ea2
Pipeline
#2296
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_file.py
0 → 100644
View file @
13df314a
import
unittest
from
csst_common
import
File
class
TestFile
(
unittest
.
TestCase
):
def
test_parameterized_module_decorator
(
self
):
f
=
File
(
"/path/to/file.fits"
)
self
.
assertEqual
(
f
.
switch_extension
(
".cat"
),
"/path/to/file.cat"
)
self
.
assertEqual
(
f
.
switch_extension
(
"img.cat"
),
"/path/to/file_img.cat"
)
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