Skip to content
Snippets Groups Projects
Commit 3aa6ee82 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

TST: add aditional test case

parent b2e90c94
Branches
Tags
2 merge requests!53Release 0.1,!6TST: add test for query and some minor changes
...@@ -47,7 +47,8 @@ def test_create_query_for_identifiable(): ...@@ -47,7 +47,8 @@ def test_create_query_for_identifiable():
.add_property("f", value=datetime(2020, 10, 10)) .add_property("f", value=datetime(2020, 10, 10))
.add_property("g", value=True) .add_property("g", value=True)
.add_property("h", value=db.Record(id=1111)) .add_property("h", value=db.Record(id=1111))
.add_property("i", value=[2222, db.Record(id=3333)])) .add_property("i", value=db.File(id=1112))
.add_property("j", value=[2222, db.Record(id=3333)]))
assert (query.lower() == "find record b with name='a' and 'c'='c' and 'd'='5' and 'e'='5.5'" assert (query.lower() == "find record b with name='a' and 'c'='c' and 'd'='5' and 'e'='5.5'"
" and 'f'='2020-10-10t00:00:00' and 'g'='true' and 'h'='1111' and 'i'='2222' and " " and 'f'='2020-10-10t00:00:00' and 'g'='true' and 'h'='1111' and 'i'='1112' and "
"'i'='3333' ") "'j'='2222' and 'j'='3333' ")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment