Skip to content
Snippets Groups Projects
Verified Commit ae44a239 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

add xfail to some test in test_query_version

parent f22584c3
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment