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
9e9234cb
Commit
9e9234cb
authored
Oct 22, 2025
by
BO ZHANG
🏀
Browse files
remove abs path
parent
71e23c8d
Pipeline
#10783
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/test_io.py
View file @
9e9234cb
...
...
@@ -9,6 +9,7 @@ Modified-History:
2023-12-15, Bo Zhang, add TestFitsHeaderOps.test_reformat_header
"""
import
os
import
unittest
from
astropy.io
import
fits
...
...
@@ -144,5 +145,10 @@ class TestFitsHeaderOps(unittest.TestCase):
self
.
assertEqual
(
meta
[
"obs_id"
],
"123456"
)
def
test_fits_open
(
self
):
hl
=
fits_open
(
"/nfsdata/share/pipeline-unittest/csst_common/test_fits/hl.fits"
)
hl
=
fits_open
(
os
.
path
.
join
(
os
.
environ
[
"UNIT_TEST_DATA_ROOT"
],
"csst_common/test_fits/hl.fits"
,
)
)
self
.
assertTrue
(
isinstance
(
hl
,
fits
.
HDUList
))
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