forked from innovacion/searchbox
Rename package to searchbox
This commit renames the package from vector-search-mcp to searchbox. The package imports and executable name are updated accordingly.
This commit is contained in:
@@ -14,15 +14,15 @@ class TestMCPServer:
|
||||
|
||||
def test_server_import(self):
|
||||
"""Test that MCP server can be imported successfully."""
|
||||
from vector_search_mcp.mcp_server import server
|
||||
from searchbox.mcp_server import server
|
||||
|
||||
assert hasattr(server, 'mcp')
|
||||
assert hasattr(server, 'engine')
|
||||
|
||||
def test_server_initialization(self):
|
||||
"""Test that the MCP server initializes correctly."""
|
||||
from vector_search_mcp.mcp_server import server
|
||||
from vector_search_mcp.engine import Backend
|
||||
from searchbox.mcp_server import server
|
||||
from searchbox.engine import Backend
|
||||
|
||||
# Verify server module attributes exist
|
||||
assert hasattr(server, 'mcp')
|
||||
@@ -35,13 +35,13 @@ class TestMCPServer:
|
||||
|
||||
def test_run_function_exists(self):
|
||||
"""Test that the run function exists in the package init."""
|
||||
from vector_search_mcp.mcp_server import run
|
||||
from searchbox.mcp_server import run
|
||||
|
||||
assert callable(run)
|
||||
|
||||
def test_run_function_signature(self):
|
||||
"""Test that run function has correct signature and docstring."""
|
||||
from vector_search_mcp.mcp_server import run
|
||||
from searchbox.mcp_server import run
|
||||
import inspect
|
||||
|
||||
# Check function signature
|
||||
@@ -58,7 +58,7 @@ class TestMCPServer:
|
||||
|
||||
def test_run_function_type_annotations(self):
|
||||
"""Test that run function has proper type annotations."""
|
||||
from vector_search_mcp.mcp_server import run
|
||||
from searchbox.mcp_server import run
|
||||
|
||||
# Verify function exists and is callable
|
||||
assert callable(run)
|
||||
@@ -100,7 +100,7 @@ class TestMCPIntegration:
|
||||
|
||||
def test_semantic_search_tool_registration(self):
|
||||
"""Test that semantic_search tool registration is accessible."""
|
||||
from vector_search_mcp.mcp_server.server import mcp
|
||||
from searchbox.mcp_server.server import mcp
|
||||
|
||||
# Just verify the mcp object exists and is properly configured
|
||||
# The actual tool registration happens during import
|
||||
@@ -109,7 +109,7 @@ class TestMCPIntegration:
|
||||
|
||||
def test_server_module_attributes(self):
|
||||
"""Test that server module has expected attributes."""
|
||||
from vector_search_mcp.mcp_server import server
|
||||
from searchbox.mcp_server import server
|
||||
|
||||
assert hasattr(server, 'mcp')
|
||||
assert hasattr(server, 'engine')
|
||||
@@ -120,7 +120,7 @@ class TestMCPIntegration:
|
||||
|
||||
def test_package_init_exports(self):
|
||||
"""Test that package __init__ exports the run function."""
|
||||
from vector_search_mcp.mcp_server import run
|
||||
from searchbox.mcp_server import run
|
||||
|
||||
assert callable(run)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user