From 4dcd8e8be54a03cadc0f19470015898d0c0045bb Mon Sep 17 00:00:00 2001 From: fspreck <f.spreckelsen@indiscale.com> Date: Wed, 31 Jan 2024 18:12:10 +0100 Subject: [PATCH] STY: autopep8'd --- src/linkahead/apiutils.py | 4 ++-- unittests/test_apiutils.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/linkahead/apiutils.py b/src/linkahead/apiutils.py index be6b2d82..88687716 100644 --- a/src/linkahead/apiutils.py +++ b/src/linkahead/apiutils.py @@ -626,10 +626,10 @@ def _same_id_as_resolved_entity(this, that): def escape_quoted_text(text: str) -> str: - """The characters `\` and `*` need to be escaped if used in quoted expressions in the query + """The characters `\\` and `*` need to be escaped if used in quoted expressions in the query language. - This function return the given string where the characters `\` and `*` are escaped by a `\`. + This function return the given string where the characters `\\` and `*` are escaped by a `\\`. Parameters ---------- diff --git a/unittests/test_apiutils.py b/unittests/test_apiutils.py index b9f5cd0f..47d8e3e9 100644 --- a/unittests/test_apiutils.py +++ b/unittests/test_apiutils.py @@ -635,7 +635,6 @@ def test_merge_id_with_resolved_entity(): assert recA.get_property(rtname).value == recB.get_property(rtname).value - def test_escape_quoted_text(): assert escape_quoted_text("bla") == "bla" assert escape_quoted_text("bl\\a") == "bl\\\\a" -- GitLab