We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5185821 commit d51417aCopy full SHA for d51417a
tests/test_mcp.py
@@ -37,6 +37,12 @@ def test_query_sql_permitted():
37
assert query_sql("SELECT 42")["rows"] == [[42]]
38
39
40
+def test_query_sql_trailing_slash(mocker):
41
+ """Verify that query_sql works correctly when HTTP_URL has a trailing slash."""
42
+ mocker.patch("cratedb_mcp.__main__.HTTP_URL", "http://localhost:4200/")
43
+ assert query_sql("SELECT 42")["rows"] == [[42]]
44
+
45
46
def test_query_sql_forbidden_easy():
47
with pytest.raises(PermissionError) as ex:
48
assert "RelationUnknown" in str(
0 commit comments