Skip to content
Snippets Groups Projects
Commit 8cb49acf authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

TST: Extend test for #131

parent 43ccbad5
No related branches found
No related tags found
1 merge request!7Tests for multiple white space chars after `FROM`
Pipeline #8408 failed
......@@ -242,4 +242,13 @@ def test_issue_134():
def test_issue_131():
"""white space befor unit with strange character"""
db.execute_query("FIND Entity WITH price > 100 €")
rt = db.RecordType(name="TestType").insert()
prop = db.Property(name="TestProp", datatype=db.INTEGER, unit="").insert()
rec = db.Record(name="TestRecord").add_property(
name=prop.name, value=101, unit="")
rec.add_parent(rt)
rec.insert()
result_ids = [ent.id for ent in db.execute_query(
"FIND Entity WITH {} > 100 €".format(prop.name))]
assert rec.id in result_ids
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