20 lines
571 B
Python
20 lines
571 B
Python
from active_runtime.app.self_loop_runtime_api import enqueue_self_loop_job, run_self_loop_job
|
|
|
|
|
|
def test_runtime_api_job_flow():
|
|
queued = enqueue_self_loop_job(
|
|
"continue self-loop runtime wiring",
|
|
{"status": "active"},
|
|
{
|
|
"update_mode": "git_patch_only",
|
|
"codex_gitops": {
|
|
"direct_main_push": False,
|
|
"api_keys_in_git": False,
|
|
},
|
|
},
|
|
)
|
|
|
|
assert queued["status"] == "queued"
|
|
result = run_self_loop_job(queued["job"]["id"])
|
|
assert result["status"] == "ok"
|