Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
aa4a7ebe
Commit
aa4a7ebe
authored
6 years ago
by
Swen Vermeul
Browse files
Options
Downloads
Patches
Plain Diff
added paging test
parent
4aa40620
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pybis/src/python/tests/test_dataset.py
+9
-1
9 additions, 1 deletion
pybis/src/python/tests/test_dataset.py
with
9 additions
and
1 deletion
pybis/src/python/tests/test_dataset.py
+
9
−
1
View file @
aa4a7ebe
...
...
@@ -9,6 +9,7 @@ def test_create_delete_dataset(space):
timestamp
=
time
.
strftime
(
'
%a_%y%m%d_%H%M%S
'
).
upper
()
o
=
space
.
openbis
dataset
=
o
.
new_dataset
(
type
=
'
RAW_DATA
'
,
sample
=
'
/DEFAULT/DEFAULT/DEFAULT
'
,
...
...
@@ -32,15 +33,22 @@ def test_create_delete_dataset(space):
dataset
.
save
()
# test paging
current_datasets
=
o
.
get_datasets
(
start_with
=
1
,
count
=
1
)
assert
current_datasets
is
not
None
# we cannot assert == 1, because search is delayed due to lucene search...
assert
len
(
current_datasets
)
<=
1
# now there should appear a permId
assert
dataset
.
permId
is
not
None
# get it by permId
dataset_by_permId
=
o
.
get_dataset
(
dataset
.
permId
)
assert
dataset_by_permId
is
not
None
permId
=
dataset
.
permId
assert
dataset
is
not
None
# delete datasets
dataset
.
delete
(
'
dataset creation test on
'
+
timestamp
)
# get by permId should now throw an error
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment