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
e50e6308
Commit
e50e6308
authored
Oct 25, 2025
by
BO ZHANG
🏀
Browse files
add test_prepare_fits_files_for_ingestion()
parent
e5a99a1c
Pipeline
#10962
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/test_fits.py
View file @
e50e6308
...
...
@@ -52,3 +52,9 @@ class TestFitsHeaderOps(unittest.TestCase):
hl
=
fits
.
open
(
test_fits_file
)
fits_bytes
=
hl
.
to_bytes
()
self
.
assertIsInstance
(
fits_bytes
,
bytes
)
def
test_prepare_fits_files_for_ingestion
(
self
):
ingestion_files
=
fits
.
prepare_fits_files_for_ingestion
([
test_fits_file
])
self
.
assertIsInstance
(
ingestion_files
,
list
)
self
.
assertEqual
(
len
(
ingestion_files
),
1
)
self
.
assertEqual
(
set
(
ingestion_files
[
0
].
keys
()),
{
"file_name"
,
"file_content"
})
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