Skip to content

Commit 2d2fb8f

Browse files
Studio MCP: drop the unused stop_run re-export and keep test module names pointing at one module
1 parent a9e70d0 commit 2d2fb8f

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎studio/backend/studio_mcp/tools/audio.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from pydantic import Field
1919

2020
from studio_mcp import loading
21-
from studio_mcp.audio_runs import _CANCELLED, _RUNS, _Run, _forget_old_cancels, stop_run # noqa: F401
21+
from studio_mcp.audio_runs import _CANCELLED, _RUNS, _Run, _forget_old_cancels
2222
from studio_mcp.caller import Caller, current_caller
2323
from studio_mcp.errors import raise_for_audio, raise_for_route
2424
from studio_mcp.forward import forward, ndjson_last

‎studio/backend/tests/test_mcp_audio_takes.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from fastapi.responses import JSONResponse
88

99
from models.inference import AudioRunRequest
10+
from studio_mcp import audio_runs
1011
from studio_mcp.tools import audio
1112

1213
from .mcp_harness import bodies, fake_studio, run_tool, sequence
@@ -60,7 +61,7 @@ def test_a_cancel_during_take_two_keeps_take_one_and_sends_no_third(monkeypatch)
6061
def run(request, body):
6162
if json.loads(body)["take"] == 1:
6263
return _take("var-1", seed = 41)
63-
assert audio.stop_run("owner", "run-abc12") is False
64+
assert audio_runs.stop_run("owner", "run-abc12") is False
6465
return JSONResponse({"detail": "Audio generation cancelled"}, status_code = 499)
6566

6667
result, studio = _music(monkeypatch, run)
@@ -81,7 +82,7 @@ def run(request, body):
8182

8283
def test_a_cancel_as_a_take_ends_stops_before_the_next(monkeypatch):
8384
def run(request, body):
84-
audio.stop_run("owner", "run-abc12")
85+
audio_runs.stop_run("owner", "run-abc12")
8586
return _take("var-1")
8687

8788
result, studio = _music(monkeypatch, run)

‎studio/backend/tests/test_mcp_tools_jobs.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ async def handler(request, body):
252252

253253

254254
def test_a_first_read_that_stalls_ends_with_a_retry_hint(monkeypatch):
255-
from studio_mcp import jobs
255+
from studio_mcp import jobs as job_reads
256256

257-
monkeypatch.setattr(jobs, "FIRST_READ_S", 0.2)
257+
monkeypatch.setattr(job_reads, "FIRST_READ_S", 0.2)
258258
studio = fake_studio({VIDEO: slow(_video("in_progress", 10), 10)})
259259
started = time.monotonic()
260260
result, _studio = run_tool(monkeypatch, studio, "get_job", {"kind": "video", "id": "vid-1"})

0 commit comments

Comments
 (0)