Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Python Integration Tests
Commits
095ec6ee
Verified
Commit
095ec6ee
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
STY: autopep8'ed
parent
f49e5211
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
tests/test_query_version.py
+4
-2
4 additions, 2 deletions
tests/test_query_version.py
with
4 additions
and
2 deletions
tests/test_query_version.py
+
4
−
2
View file @
095ec6ee
...
@@ -408,7 +408,8 @@ def test_find_any_version_of_record_with_simple_pov_datetime_filter():
...
@@ -408,7 +408,8 @@ def test_find_any_version_of_record_with_simple_pov_datetime_filter():
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime = 2022-12-24T20:15:00
"
)
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime = 2022-12-24T20:15:00
"
)
assert
len
(
result
)
==
1
assert
len
(
result
)
==
1
assert
result
[
0
].
description
==
"
v2
"
assert
result
[
0
].
description
==
"
v2
"
assert
result
[
0
].
get_property
(
"
TestPropertyDatetime
"
).
value
.
startswith
(
"
2022
"
)
assert
result
[
0
].
get_property
(
"
TestPropertyDatetime
"
).
value
.
startswith
(
"
2022
"
)
result
=
query
(
result
=
query
(
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime = 2021-12-24T20:15:00
"
)
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime = 2021-12-24T20:15:00
"
)
...
@@ -424,7 +425,8 @@ def test_find_any_version_of_record_with_simple_pov_datetime_filter():
...
@@ -424,7 +425,8 @@ def test_find_any_version_of_record_with_simple_pov_datetime_filter():
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime IN 2022
"
)
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime IN 2022
"
)
assert
len
(
result
)
==
1
assert
len
(
result
)
==
1
assert
result
[
0
].
description
==
"
v2
"
assert
result
[
0
].
description
==
"
v2
"
assert
result
[
0
].
get_property
(
"
TestPropertyDatetime
"
).
value
.
startswith
(
"
2022
"
)
assert
result
[
0
].
get_property
(
"
TestPropertyDatetime
"
).
value
.
startswith
(
"
2022
"
)
result
=
query
(
result
=
query
(
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime IN 2021
"
)
"
FIND ANY VERSION OF RECORD WITH TestPropertyDatetime IN 2021
"
)
...
...
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