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

TST: test backref filter with like pattern

parent b50c3e21
No related branches found
No related tags found
No related merge requests found
......@@ -207,8 +207,6 @@ def test_query3():
assert xml.xpath("/Response/TransactionBenchmark")
assert xml.xpath("/Response/UserInfo")
assert_equal(3, len(xml))
assert_equal("query", xml[1].tag.lower())
assert_equal("transactionbenchmark", xml[2].tag.lower())
@with_setup(setup, teardown)
......@@ -926,3 +924,14 @@ def test_like_query():
h.execute_query("FIND box with number like '*7'")
h.execute_query("FIND box with number like '7'")
h.execute_query("FIND box with number = '7'")
@with_setup(setup, teardown)
def test_backref_like():
h.RecordType("TestData").insert()
other = h.Record("other").add_parent("TestData").insert()
sme = h.Record("s_m_e").add_property("TestData", other.id).add_parent("TestData").insert()
print(sme)
h.execute_query("FIND ENTITY WHICH IS REFERENCED BY s_m_e", unique=True)
h.execute_query("FIND ENTITY WHICH IS REFERENCED BY *m*", unique=True)
h.execute_query("FIND ENTITY WHICH IS REFERENCED BY s*", unique=True)
h.execute_query("FIND ENTITY WHICH IS REFERENCED BY *e", unique=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment