From 785dba73be4c70f6bae4ba0504e3ee1df77a7f30 Mon Sep 17 00:00:00 2001 From: Lazlo Westerhof Date: Tue, 17 Dec 2024 12:34:50 +0100 Subject: [PATCH] Refactor --- integration_tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration_tests.py b/integration_tests.py index 6c3c890fd..d38612b34 100644 --- a/integration_tests.py +++ b/integration_tests.py @@ -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):