Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Dec 17, 2024
1 parent 8cbfe4f commit 785dba7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def _call_msvc_json_arrayops(ctx, jsonstr, val, ops, index, argument_index):

def _call_msvc_json_objops(ctx, jsonstr, val, ops, argument_index):
"""Returns an output argument from the json_objops microservice"""
return ctx.msi_json_objops(jsonstr, val, ops)["arguments"][argument_index]
result = ctx.msi_json_objops(jsonstr, val, ops)["arguments"]
if ops == "get":
return list(result[argument_index].key), list(result[argument_index].value)
else:
return result[argument_index]


def _create_tmp_object(ctx):
Expand Down

0 comments on commit 785dba7

Please sign in to comment.