Skip to content

Commit 2b497ef

Browse files
committed
refactor: update import paths from UnityMcpBridge to MCPForUnity across test files
1 parent c79c8d0 commit 2b497ef

16 files changed

+19
-19
lines changed

tests/test_edit_normalization_and_noop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
ROOT = pathlib.Path(__file__).resolve().parents[1]
8-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
8+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
99
sys.path.insert(0, str(SRC))
1010

1111
# stub mcp.server.fastmcp

tests/test_edit_strict_and_warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
ROOT = pathlib.Path(__file__).resolve().parents[1]
8-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
8+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
99
sys.path.insert(0, str(SRC))
1010

1111
# stub mcp.server.fastmcp

tests/test_find_in_file_minimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88

99
ROOT = pathlib.Path(__file__).resolve().parents[1]
10-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
10+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
1111
sys.path.insert(0, str(SRC))
1212

1313

tests/test_get_sha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
ROOT = pathlib.Path(__file__).resolve().parents[1]
8-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
8+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
99
sys.path.insert(0, str(SRC))
1010

1111
# stub mcp.server.fastmcp to satisfy imports without full dependency

tests/test_improved_anchor_matching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# add server src to path and load modules
1111
ROOT = pathlib.Path(__file__).resolve().parents[1]
12-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
12+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
1313
sys.path.insert(0, str(SRC))
1414

1515
# stub mcp.server.fastmcp

tests/test_logging_stdout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# locate server src dynamically to avoid hardcoded layout assumptions
88
ROOT = Path(__file__).resolve().parents[1]
99
candidates = [
10-
ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src",
10+
ROOT / "MCPForUnity" / "UnityMcpServer~" / "src",
1111
ROOT / "UnityMcpServer~" / "src",
1212
]
1313
SRC = next((p for p in candidates if p.exists()), None)

tests/test_manage_script_uri.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Locate server src dynamically to avoid hardcoded layout assumptions (same as other tests)
1010
ROOT = Path(__file__).resolve().parents[1]
1111
candidates = [
12-
ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src",
12+
ROOT / "MCPForUnity" / "UnityMcpServer~" / "src",
1313
ROOT / "UnityMcpServer~" / "src",
1414
]
1515
SRC = next((p for p in candidates if p.exists()), None)

tests/test_read_console_truncate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import types
55

66
ROOT = pathlib.Path(__file__).resolve().parents[1]
7-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
7+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
88
sys.path.insert(0, str(SRC))
99

1010
# stub mcp.server.fastmcp

tests/test_read_resource_minimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import pytest
77

88
ROOT = pathlib.Path(__file__).resolve().parents[1]
9-
SRC = ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src"
9+
SRC = ROOT / "MCPForUnity" / "UnityMcpServer~" / "src"
1010
sys.path.insert(0, str(SRC))
1111

1212
# Stub mcp.server.fastmcp to satisfy imports without full package

tests/test_resources_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# locate server src dynamically to avoid hardcoded layout assumptions
1111
ROOT = Path(__file__).resolve().parents[1]
1212
candidates = [
13-
ROOT / "UnityMcpBridge" / "UnityMcpServer~" / "src",
13+
ROOT / "MCPForUnity" / "UnityMcpServer~" / "src",
1414
ROOT / "UnityMcpServer~" / "src",
1515
]
1616
SRC = next((p for p in candidates if p.exists()), None)

0 commit comments

Comments
 (0)