File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,9 @@ class DummySettings:
54
54
55
55
56
56
@mock .patch (
57
- "unitycatalog_mcp .tools.functions.DatabricksFunctionClient" , new = DummyClient
57
+ "databricks.labs.mcp.servers.unity_catalog .tools.functions.DatabricksFunctionClient" , new = DummyClient
58
58
)
59
- @mock .patch ("unitycatalog_mcp .tools.functions.UCFunctionToolkit" , new = DummyToolkit )
59
+ @mock .patch ("databricks.labs.mcp.servers.unity_catalog .tools.functions.UCFunctionToolkit" , new = DummyToolkit )
60
60
def test_list_uc_function_tools ():
61
61
settings = DummySettings ()
62
62
tools = list_uc_function_tools (settings )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class DummyWorkspaceClient:
63
63
pass
64
64
65
65
66
- @mock .patch ("unitycatalog_mcp .tools.genie.WorkspaceClient" , new = DummyWorkspaceClient )
66
+ @mock .patch ("databricks.labs.mcp.servers.unity_catalog .tools.genie.WorkspaceClient" , new = DummyWorkspaceClient )
67
67
def test_genie_tool_execute ():
68
68
mock_func = mock .Mock ()
69
69
mock_func .return_value = [mock .Mock (text = "hello world" )]
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ class DummySettings:
32
32
33
33
34
34
@mock .patch (
35
- "unitycatalog_mcp .tools.vector_search.WorkspaceClient" , new = DummyWorkspaceClient
35
+ "databricks.labs.mcp.servers.unity_catalog .tools.vector_search.WorkspaceClient" , new = DummyWorkspaceClient
36
36
)
37
- @mock .patch ("unitycatalog_mcp .tools.vector_search.VectorSearchRetrieverTool" )
37
+ @mock .patch ("databricks.labs.mcp.servers.unity_catalog .tools.vector_search.VectorSearchRetrieverTool" )
38
38
def test_list_vector_search_tools_filters_and_returns_expected (
39
39
MockVectorSearchRetrieverTool ,
40
40
):
@@ -52,7 +52,7 @@ def test_list_vector_search_tools_filters_and_returns_expected(
52
52
53
53
def test_internal_list_vector_search_tools_direct ():
54
54
with mock .patch (
55
- "unitycatalog_mcp .tools.vector_search.VectorSearchRetrieverTool"
55
+ "databricks.labs.mcp.servers.unity_catalog .tools.vector_search.VectorSearchRetrieverTool"
56
56
) as MockVectorSearchRetrieverTool :
57
57
MockVectorSearchRetrieverTool .side_effect = lambda index_name : mock .Mock (
58
58
tool = {
You can’t perform that action at this time.
0 commit comments