diff --git a/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py b/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py index df750536a2..639d3c10fa 100644 --- a/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py +++ b/pytests/iroha_cli_tests/src/iroha_cli/iroha_cli.py @@ -286,9 +286,7 @@ def _read_and_update_json(self, template_filename, changes=None): for key_path, value in changes.items(): element = data[0] for key in key_path[:-1]: - element = element[ - key - ] + element = element[key] element[key_path[-1]] = value json_temp_file_path = Path(ISI_PATH) / f"isi_{template_filename}"