fix: add 'dry_run' to SUCCESS_RESPONSE_STATUSES in podcaster handoff (#423)
Add 'dry_run' to SUCCESS_RESPONSE_STATUSES so the podcaster handoff workflow accepts dry-run responses without failing validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Juan Manuel Servera committed
Jun 12, 2026 at 15:40 UTC
9ae54cd3f43a95683371ef8dc21c2ccd6c20fca0
2 files changed
+7
-1
scripts/podcaster_handoff.py
+1
-1
@@ -253,7 +253,7 @@ def build_payload(
253
return payload
254
255
256
-SUCCESS_RESPONSE_STATUSES = {"accepted"}
256
+SUCCESS_RESPONSE_STATUSES = {"accepted", "dry_run"}
257
258
259
def validate_response(payload: Any) -> dict[str, Any]:
tests/test_podcaster_handoff.py
+6
@@ -256,6 +256,12 @@ class PodcasterHandoffTests(unittest.TestCase):
256
)
257
self.assertEqual(result["status"], "accepted")
258
259
+ def test_validate_response_accepts_dry_run_status(self) -> None:
260
+ result = podcaster_handoff.validate_response(
261
+ {"job_id": "podcast-1", "status": "dry_run", "errors": []}
262
+ )
263
+ self.assertEqual(result["status"], "dry_run")
264
+
265
def test_non_2xx_response_fails_handoff(self) -> None:
266
http_err = error.HTTPError(
267
url="http://localhost:7071/api/generate",