Skip to content

Commit b949459

Browse files
author
Alan Christie
committed
style: Change to response
1 parent cde617f commit b949459

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

decoder/decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def get_file_assets(job_definition: Dict[str, Any]) -> List[Dict[str, str]]:
264264
if "account-server-asset" in item["content-from"]:
265265
file_assets.append(
266266
{
267-
"asset": item["content-from"]["account-server-asset"]["name"],
267+
"asset-name": item["content-from"]["account-server-asset"]["name"],
268268
"image-file": item["name"],
269269
}
270270
)
@@ -290,7 +290,7 @@ def get_environment_assets(job_definition: Dict[str, Any]) -> List[Dict[str, str
290290
if "account-server-asset" in item["value-from"]:
291291
env_assets.append(
292292
{
293-
"asset": item["value-from"]["account-server-asset"]["name"],
293+
"asset-name": item["value-from"]["account-server-asset"]["name"],
294294
"variable": item["name"],
295295
}
296296
)

tests/test_get_environment_assets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ def test_get_environment_assets():
3636

3737
# Assert
3838
assert len(env_assets) == 1
39-
assert env_assets[0]["asset"] == "asset-c"
39+
assert env_assets[0]["asset-name"] == "asset-c"
4040
assert env_assets[0]["variable"] == "BLOB"

tests/test_get_file_assets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def test_get_file_assets():
3838
assert len(file_assets) == 2
3939
for file_asset in file_assets:
4040
if file_asset["image-file"] == "/tmp/blob-1.txt":
41-
assert file_asset["asset"] == "asset-a"
41+
assert file_asset["asset-name"] == "asset-a"
4242
elif file_asset["image-file"] == "/tmp/blob-2.txt":
43-
assert file_asset["asset"] == "asset-b"
43+
assert file_asset["asset-name"] == "asset-b"
4444
else:
4545
# How did we get here?
4646
assert False

0 commit comments

Comments
 (0)