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

More tests for caosdb-server#145

parent 8ce04c21
No related branches found
No related tags found
1 merge request!35Add tests for https://gitlab.com/caosdb/caosdb-server/-/issues/145
Pipeline #24640 canceled
This commit is part of merge request !35. Comments created here will be created in the context of that merge request.
......@@ -870,6 +870,10 @@ def test_145():
assert rec2.get_property("TestPropDouble").value == 20_000_000_000
assert isinstance(rec2.get_property("TestPropDouble").value, float)
assert db.execute_query("FIND TestRT WITH TestProp < 1000000000.2",
unique=True).id == rec1.id # this is the integer property
assert db.execute_query("FIND TestRT WITH TestProp > 1000000000.2", unique=True).id == rec2.id
assert db.execute_query("FIND TestRT WITH TestProp = 1000000000", unique=True).id == rec1.id
assert db.execute_query("FIND TestRT WITH TestProp = 1000000000.0", unique=True).id == rec1.id
......@@ -881,3 +885,7 @@ def test_145():
assert db.execute_query("FIND TestRT WITH TestProp < 20000000000", unique=True).id == rec1.id
assert db.execute_query("FIND TestRT WITH TestProp < 20000000000.0", unique=True).id == rec1.id
assert db.execute_query(
"FIND TestRT WITH TestPropInt < 10000000000000000000000000000000000000000000000000000000000",
unique=True).id == rec1.id
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment