Skip to content

Commit ee1e610

Browse files
author
Alan Christie
committed
feat: get_job now required to return 'definition'
1 parent 4654454 commit ee1e610

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tests/wapi_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def get_job(self, *, collection: str, job: str, version: str) -> dict[str, Any]:
215215
assert version
216216

217217
jd = _JOB_DEFINITIONS["jobs"][job]
218-
response = {"command": jd["command"]}
218+
response = {"command": jd["command"], "definition": jd}
219219
if "variables" in jd:
220220
response["variables"] = jd["variables"]
221221
return response, 0

workflow/workflow_abc.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ def get_job(
221221
version: str,
222222
) -> tuple[dict[str, Any], int]:
223223
"""Get a Job"""
224+
# Should return:
225+
# {
226+
# "command": "<command string>",
227+
# "definition": "<the definition as a Python dictionary>",
228+
# }
224229
# If not present an empty dictionary should be returned.
225230

226231

0 commit comments

Comments
 (0)