Closed skieffer closed 2 years ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Thank you @skieffer, Out of curiosity what are you using RedisGraph for?
Out of curiosity what are you using RedisGraph for?
It's a back end for an app that lets multiple authors share components that will be linked together -- hence the need for a graph database.
I recently added a step that stores document snippets as properties in the graph, and these snippets often have their own escaped characters within them -- including \"
-- so I stumbled onto this issue.
Fixes #139
I added the functional test
tests.functional.test_all.TestStringMethods.test_properties_with_escapes()
which demonstrates that, when you set a property string containing backslash or quotation mark, you get the same string back after reading.I also rewrote the unit test
tests.unit.test_util.TestUtils.test_quote_string()
using raw strings, which I think makes the test much easier to read and understand.