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
7176178a
Commit
7176178a
authored
6 years ago
by
Swen Vermeul
Browse files
Options
Downloads
Patches
Plain Diff
changed to standard docker installation
parent
949abf79
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
-12
9 additions, 12 deletions
pybis/src/python/tests/test_dataset.py
with
9 additions
and
12 deletions
pybis/src/python/tests/test_dataset.py
+
9
−
12
View file @
7176178a
...
@@ -6,12 +6,13 @@ import pytest
...
@@ -6,12 +6,13 @@ import pytest
import
time
import
time
def
test_create_delete_dataset
(
space
):
def
test_create_delete_dataset
(
space
):
timestamp
=
time
.
strftime
(
'
%a_%y%m%d_%H%M%S
'
).
upper
()
o
=
space
.
openbis
o
=
space
.
openbis
dataset_type
=
'
UNKNOWN
'
dataset_type
=
'
UNKNOWN
'
dataset
=
o
.
new_dataset
(
dataset
=
o
.
new_dataset
(
type
=
'
UNKNOWN
'
,
type
=
'
UNKNOWN
'
,
sample
=
'
/DEFAULT/DEFAULT
'
,
sample
=
'
/DEFAULT/DEFAULT
/DEFAULT
'
,
files
=
[
'
testfile
'
]
files
=
[
'
testfile
'
]
)
)
...
@@ -26,17 +27,13 @@ def test_create_delete_dataset(space):
...
@@ -26,17 +27,13 @@ def test_create_delete_dataset(space):
dataset_by_permId
=
o
.
get_dataset
(
dataset
.
permId
)
dataset_by_permId
=
o
.
get_dataset
(
dataset
.
permId
)
assert
dataset_by_permId
is
not
None
assert
dataset_by_permId
is
not
None
dataset_by_permId
=
space
.
get_dataset
(
dataset
.
permId
)
permId
=
dataset
.
permId
assert
dataset_by_permId
is
not
None
# get it by identifier
dataset_by_identifier
=
o
.
get_dataset
(
dataset
.
identifier
)
assert
dataset_by_identifier
is
not
None
dataset_by_identifier
=
space
.
get_dataset
(
dataset
.
identifier
)
assert
dataset_by_identifier
is
not
None
dataset
.
delete
(
'
dataset creation test on
'
+
timestamp
)
dataset
.
delete
(
'
dataset creation test on
'
+
timestamp
)
#
# # get by permId should now throw an error
# with pytest.raises(ValueError):
# dataset.by_permId = o.get_dataset(permId)
#
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