We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ofriw/chunkhound'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
test_like_utils.py•730 B
"""Unit tests for SQL LIKE escaping utilities."""
from chunkhound.providers.database.like_utils import escape_like_pattern
def test_escape_like_pattern_parameterized_keeps_quotes() -> None:
escaped = escape_like_pattern("scope_%[path]'\\name", escape_quotes=False)
assert "\\%" in escaped
assert "\\_" in escaped
assert "\\[" in escaped
assert "\\\\" in escaped
assert "''" not in escaped
assert "'" in escaped
def test_escape_like_pattern_interpolated_escapes_quotes() -> None:
escaped = escape_like_pattern("scope_%[path]'\\name", escape_quotes=True)
assert "\\%" in escaped
assert "\\_" in escaped
assert "\\[" in escaped
assert "\\\\" in escaped
assert "''" in escaped