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
ae44a239
Verified
Commit
ae44a239
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
add xfail to some test in test_query_version
parent
f22584c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_query_version.py
+8
-1
8 additions, 1 deletion
tests/test_query_version.py
with
8 additions
and
1 deletion
tests/test_query_version.py
+
8
−
1
View file @
ae44a239
...
...
@@ -21,6 +21,7 @@
#
# ** end header
#
import
pytest
import
caosdb
as
db
from
caosdb
import
execute_query
as
query
...
...
@@ -206,7 +207,9 @@ def test_normal_find_record():
assert
len
(
result
)
==
1
assert
result
[
0
].
description
==
"
v3
"
def
test_todo
():
@pytest.mark.xfail
(
reason
=
"
Find queries which respect the version of the references are not supported yet and return false positives.
"
)
def
test_normal_find_with_versioned_reference
():
# current version is not referenced
result
=
query
(
"
FIND RECORD WHICH IS REFERENCED BY TestBackRef1
"
)
assert
len
(
result
)
==
0
...
...
@@ -521,11 +524,15 @@ def test_find_any_version_of_record_with_backref_filter():
assert
len
(
result
)
==
1
assert
set
([
"
v3
"
])
==
set
([
r
.
description
for
r
in
result
])
@pytest.mark.xfail
(
reason
=
"
versioned queries with subqueries are not supported yet
"
)
def
test_find_any_version_of_record_with_backref_and_subquery
():
assert
query
(
"
FIND ANY VERSION OF RECORD WHICH IS REFERENCED BY TestBackRefRecordType WITH name = TestBackRef0
"
)
assert
len
(
result
)
==
1
assert
set
([
"
v3
"
])
==
set
([
r
.
description
for
r
in
result
])
@pytest.mark.xfail
(
reason
=
"
versioned queries with subqueries are not supported yet
"
)
def
test_find_any_version_of_record_with_ref_and_subquery
():
assert
query
(
"
FIND ANY VERSION OF RECORD WHICH REFERENCES TestRefRecordType WITH name = TestRef2
"
)
assert
len
(
result
)
==
1
...
...
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