Commit 9e9234cb authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

remove abs path

parent 71e23c8d
Pipeline #10783 passed with stage
......@@ -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))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment