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
8ac91be4
Commit
8ac91be4
authored
Nov 06, 2022
by
BO ZHANG
🏀
Browse files
updated FileRecorder.__repr__()
parent
14e9e1d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_file_recorder.py
View file @
8ac91be4
...
...
@@ -9,7 +9,7 @@ Modified-History:
2022-10-10, Bo Zhang, added test for FileRecorder
"""
import
unittest
from
csst_common.file_recorder
import
FileRecorder
,
File
from
csst_common.file_recorder
import
FileRecorder
,
File
Record
# deprecated in some days
...
...
@@ -19,4 +19,4 @@ class TestCsstMbiDataManager(unittest.TestCase):
def
test_add_record
(
self
):
self
.
fr
.
add_record
(
filepath
=
"test1"
,
db
=
False
,
comment
=
"the first test"
)
self
.
assertTrue
(
self
.
fr
[
0
]
==
File
(
"test1"
,
db
=
False
,
comment
=
"the first test"
,
existence
=
False
))
self
.
assertTrue
(
self
.
fr
[
0
]
==
File
Record
(
"test1"
,
db
=
False
,
comment
=
"the first test"
,
existence
=
False
))
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