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-dfs
csst-dfs-api
Commits
c3648df3
Commit
c3648df3
authored
Jul 14, 2023
by
Wei Shoulin
Browse files
test find_by_ids
parent
598689b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/facility/test_facility_level1.py
View file @
c3648df3
...
@@ -15,6 +15,12 @@ class Level1DataTestCase(unittest.TestCase):
...
@@ -15,6 +15,12 @@ class Level1DataTestCase(unittest.TestCase):
create_time
=
(
"2021-06-01 11:12:13"
,
"2021-06-08 11:12:13"
))
create_time
=
(
"2021-06-01 11:12:13"
,
"2021-06-08 11:12:13"
))
print
(
'find:'
,
recs
)
print
(
'find:'
,
recs
)
def
test_find_by_ids
(
self
):
recs
=
self
.
api
.
find_by_ids
(
ids
=
[
1
,
2
,
3
,
4
]
)
print
(
'find_by_ids:'
,
recs
)
def
test_get
(
self
):
def
test_get
(
self
):
rec
=
self
.
api
.
get
(
id
=
2
)
rec
=
self
.
api
.
get
(
id
=
2
)
print
(
'get:'
,
rec
)
print
(
'get:'
,
rec
)
...
...
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