diff --git a/src/caoscrawler/identifiable_adapters.py b/src/caoscrawler/identifiable_adapters.py index 7a27dfeb6df8128ab825924b26279aff8df4f442..da8ebaf23c5071077c957f3155c8a64f7129653f 100644 --- a/src/caoscrawler/identifiable_adapters.py +++ b/src/caoscrawler/identifiable_adapters.py @@ -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): diff --git a/unittests/test_identifiable_adapters.py b/unittests/test_identifiable_adapters.py index c9c9e86aee5dbebf12a83dcaa26eef2f9668bca5..06ea8cdfdb782d23baf5910837203d31d99c9e2a 100644 --- a/unittests/test_identifiable_adapters.py +++ b/unittests/test_identifiable_adapters.py @@ -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' ")