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
7ca7ea78
Commit
7ca7ea78
authored
Nov 23, 2022
by
BO ZHANG
🏀
Browse files
tweaks
parent
442fb3c7
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_data_manager.py
View file @
7ca7ea78
...
...
@@ -11,8 +11,10 @@ Modified-History:
"""
import
os
import
unittest
from
csst_common.data_manager
import
CsstMsDataManager
from
csst_common.params
import
CSST_PARAMS
as
CP
dir_unittest
=
"/nfsdata/users/csstpipeline/L1Pipeline/unittests/csst_common"
...
...
@@ -42,3 +44,6 @@ class TestCsstMsDataManager(unittest.TestCase):
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_crs
(
1
)))
self
.
assertTrue
(
isinstance
(
self
.
dm_sls
.
l1_detector
(
1
,
post
=
"flt.fits"
),
str
))
self
.
assertTrue
(
isinstance
(
self
.
dm_sls
.
l1_file
(
name
=
"some_file.ext"
,
comment
=
"a demo file"
),
str
))
def
test_dfs_is_available
(
self
):
self
.
assertTrue
(
self
.
dm_mbi
.
dfs_is_available
())
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