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
b026df97
Commit
b026df97
authored
Dec 10, 2023
by
BO ZHANG
🏀
Browse files
major updates
parent
cad9fd06
Pipeline
#2166
failed with stage
in 0 seconds
Changes
22
Pipelines
1
Show whitespace changes
Inline
Side-by-side
tests/test_file_recorder.py
deleted
100644 → 0
View file @
cad9fd06
"""
Identifier: KSC-SJ4-tests/test_data_manager.py
Name: test_data_manager.py
Description: data manager unit test
Author: Bo Zhang
Created: 2022-09-13
Modified-History:
2022-10-10, Bo Zhang, created
2022-10-10, Bo Zhang, added test for FileRecorder
"""
import
unittest
from
csst_common.file_recorder
import
FileRecorder
,
FileRecord
# deprecated in some days
class
TestCsstMbiDataManager
(
unittest
.
TestCase
):
def
setUp
(
self
)
->
None
:
self
.
fr
=
FileRecorder
()
def
test_add_record
(
self
):
self
.
fr
.
add_record
(
filepath
=
"test1"
,
db
=
False
,
comment
=
"the first test"
)
self
.
assertTrue
(
self
.
fr
[
0
]
==
FileRecord
(
"test1"
,
db
=
False
,
comment
=
"the first test"
,
existence
=
False
))
tests/test_params.py
deleted
100644 → 0
View file @
cad9fd06
"""
Identifier: KSC-SJ4-tests/test_params.py
Name: test_params.py
Description: unit test for CSST parameters
Author: Bo Zhang
Created: 2022-09-13
Modified-History:
2022-09-13, Bo Zhang, created
2022-09-13, Bo Zhang, fixed a bug
"""
import
unittest
class
TestParams
(
unittest
.
TestCase
):
def
test_params
(
self
):
self
.
assertTrue
(
True
)
Prev
1
2
Next
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