Skip to content

Commit e3e5485

Browse files
authored
Fix/replace pytest anyio with pytest asyncio (#333)
* mcp_source.py: use MCPForUnity path and show branch in options * dev(deps): replace pytest-anyio (stub) with pytest-asyncio for tests
1 parent 0397887 commit e3e5485

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

MCPForUnity/UnityMcpServer~/src/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies = [
1414
[project.optional-dependencies]
1515
dev = [
1616
"pytest>=8.0.0",
17-
"pytest-anyio>=0.6.0",
17+
"pytest-asyncio>=0.23",
1818
]
1919

2020
[build-system]

mcp_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def write_json(path: pathlib.Path, data: dict) -> None:
9292

9393

9494
def build_options(repo_root: pathlib.Path, branch: str, origin_https: str):
95-
upstream = "git+https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity"
95+
upstream = "https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity"
9696
# Ensure origin is https
9797
origin = origin_https
9898
# If origin is a local file path or non-https, try to coerce to https github if possible
@@ -103,9 +103,9 @@ def build_options(repo_root: pathlib.Path, branch: str, origin_https: str):
103103
origin_remote = origin
104104
return [
105105
("[1] Upstream main", upstream),
106-
("[2] Remote current branch",
106+
(f"[2] Remote {branch}",
107107
f"{origin_remote}?path=/{BRIDGE_SUBPATH}#{branch}"),
108-
("[3] Local workspace",
108+
(f"[3] Local {branch}",
109109
f"file:{(repo_root / BRIDGE_SUBPATH).as_posix()}"),
110110
]
111111

0 commit comments

Comments
 (0)