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
e80ff31b
Commit
e80ff31b
authored
6 years ago
by
Swen Vermeul
Browse files
Options
Downloads
Patches
Plain Diff
added some date checks
parent
4661e14f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pybis/src/python/tests/test_dataset.py
+5
-0
5 additions, 0 deletions
pybis/src/python/tests/test_dataset.py
pybis/src/python/tests/test_sample.py
+5
-1
5 additions, 1 deletion
pybis/src/python/tests/test_sample.py
with
10 additions
and
1 deletion
pybis/src/python/tests/test_dataset.py
+
5
−
0
View file @
e80ff31b
...
...
@@ -62,6 +62,11 @@ def test_create_delete_dataset(space):
assert
dataset_by_permId
.
p
.
name
==
'
some good name
'
assert
dataset_by_permId
.
p
.
notes
==
'
my notes
'
assert
dataset_by_permId
.
registrator
is
not
None
assert
dataset_by_permId
.
registrationDate
is
not
None
# check date format: 2019-03-22 11:36:40
assert
re
.
search
(
'
^\d{4}\-\d{2}\-\d{2} \d{2}\:\d{2}\:\d{2}$
'
,
dataset_by_permId
.
registrationDate
)
is
not
None
# delete datasets
dataset
.
delete
(
'
dataset creation test on
'
+
timestamp
)
...
...
This diff is collapsed.
Click to expand it.
pybis/src/python/tests/test_sample.py
+
5
−
1
View file @
e80ff31b
...
...
@@ -36,8 +36,12 @@ def test_create_delete_sample(space):
sample_by_permId
=
space
.
get_sample
(
sample
.
permId
)
assert
sample_by_permId
is
not
None
assert
sample_by_permId
.
registrator
is
not
None
assert
sample_by_permId
.
registrationDate
is
not
None
# check date format: 2019-03-22 11:36:40
assert
re
.
search
(
'
^\d{4}\-\d{2}\-\d{2} \d{2}\:\d{2}\:\d{2}$
'
,
sample_by_permId
.
registrationDate
)
is
not
None
# get
it
by identifier
# get
sample
by identifier
sample_by_identifier
=
o
.
get_sample
(
sample
.
identifier
)
assert
sample_by_identifier
is
not
None
...
...
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