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
e9027b53
Commit
e9027b53
authored
May 18, 2023
by
BO ZHANG
🏀
Browse files
update to C6.2 for dm.quickstart
parent
91febdd9
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_data_manager.py
View file @
e9027b53
...
...
@@ -28,7 +28,7 @@ class TestCsstMsDataManager(unittest.TestCase):
self
.
dm_sls
.
target_detectors
=
None
def
test_mbi_data_existence
(
self
):
self
.
assertTrue
(
self
.
dm_mbi
.
available
_detectors
==
CP
[
"mbi"
][
"detectors"
])
self
.
assertTrue
(
self
.
dm_mbi
.
target
_detectors
==
CP
[
"mbi"
][
"detectors"
])
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_mbi
.
l0_detector
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_mbi
.
l0_log
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_mbi
.
l0_cat
(
6
)))
...
...
@@ -37,7 +37,7 @@ class TestCsstMsDataManager(unittest.TestCase):
self
.
assertTrue
(
isinstance
(
self
.
dm_mbi
.
l1_file
(
name
=
"some_file.ext"
,
comment
=
"a demo file"
),
str
))
def
test_sls_data_existence
(
self
):
self
.
assertTrue
(
self
.
dm_sls
.
available
_detectors
==
CP
[
"sls"
][
"detectors"
])
self
.
assertTrue
(
self
.
dm_sls
.
target
_detectors
==
CP
[
"sls"
][
"detectors"
])
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_detector
(
1
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_log
(
1
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm_sls
.
l0_cat
(
1
)))
...
...
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