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

FIX: Remove strip

parent a88259fd
No related branches found
No related tags found
2 merge requests!91Release 0.3,!86FIX: boolean in query creation
Pipeline #32751 passed
......@@ -60,7 +60,7 @@ def convert_value(value):
# replace single quotes, otherwise they may break the queries
return value.replace("\'", "\\'")
else:
return str(value).strip()
return str(value)
class IdentifiableAdapter(metaclass=ABCMeta):
......
......@@ -74,8 +74,6 @@ def test_create_query_for_identifiable():
# With single quote in string
query = IdentifiableAdapter.create_query_for_identifiable(
Identifiable(record_type="Person", backrefs=[], properties={'last_name': "B'Or"}))
print("find record person which is referenced by 14433 and which is "
"referenced by 333 and with 'last_name'='B\\'Or' ")
assert query == ("FIND RECORD Person WITH 'last_name'='B\\'Or' ")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment