Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
major updates
parent
cad9fd06
dev
main
No related merge requests found
Pipeline
#2166
failed with stage
in 0 seconds
Changes
22
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_file_recorder.py
+0
-22
tests/test_file_recorder.py
tests/test_params.py
+0
-16
tests/test_params.py
with
0 additions
and
38 deletions
+0
-38
tests/test_file_recorder.py
deleted
100644 → 0
+
0
-
22
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
))
This diff is collapsed.
Click to expand it.
tests/test_params.py
deleted
100644 → 0
+
0
-
16
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
)
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets