From 7a73b1c9dad20ff467365eabfaad0b82465b63d8 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 20 Jun 2026 15:02:04 +0000 Subject: [PATCH] fix(tests): use allowed smoke job name in quantum integration test The run_autorun_job whitelist rejects arbitrary names like 'another'; update the list/dict status-shape test to use 'smoke' so it exercises _find_job_status through the public API. Co-authored-by: Bryan --- tests/test_quantum_integration.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_quantum_integration.py b/tests/test_quantum_integration.py index bb4d331b7..74949c5ab 100644 --- a/tests/test_quantum_integration.py +++ b/tests/test_quantum_integration.py @@ -33,8 +33,8 @@ def _stub_subprocess(returncode: int = 0, stdout: str = "ok", stderr: str = ""): @pytest.mark.parametrize( "jobs_payload,expected_preset", [ - ([{"name": "another", "preset": "heart", "status": "completed"}], "heart"), - ({"another": {"name": "another", "preset": "heart", "status": "completed"}}, "heart"), + ([{"name": "smoke", "preset": "heart", "status": "completed"}], "heart"), + ({"smoke": {"name": "smoke", "preset": "heart", "status": "completed"}}, "heart"), ], ) def test_run_autorun_job_reads_status_for_list_and_dict_shapes(tmp_path: Path, monkeypatch, jobs_payload, expected_preset): @@ -49,10 +49,10 @@ def test_run_autorun_job_reads_status_for_list_and_dict_shapes(tmp_path: Path, m monkeypatch.setattr("mount.quantum_integration.subprocess.run", lambda *args, **kwargs: _stub_subprocess()) - result = asyncio.run(integration.run_autorun_job("another", dry_run=True)) + result = asyncio.run(integration.run_autorun_job("smoke", dry_run=True)) assert result["success"] is True - assert result["job_name"] == "another" + assert result["job_name"] == "smoke" assert result["dry_run"] is True assert result["status"]["preset"] == expected_preset - assert result["status"]["name"] == "another" + assert result["status"]["name"] == "smoke"