Skip to content

Commit c83bb3a

Browse files
committed
chore(converter): add $. in update json value log
1 parent 85e0961 commit c83bb3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

converter/converter/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def update_json_value(data, jsonpath_query, new_value):
204204
for match in matches:
205205
old_value = get_field_value(data, str(match.full_path))
206206
logger.info(
207-
"Updating value from %s to %s at path %s",
207+
"Updating value from %s to %s at path $.%s",
208208
old_value,
209209
new_value,
210210
match.full_path,

converter/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def test_update_json_value_logs_info(self, mock_logger):
418418

419419
# Check the log message content
420420
args, kwargs = mock_logger.info.call_args
421-
assert args[0] == "Updating value from %s to %s at path %s"
421+
assert args[0] == "Updating value from %s to %s at path $.%s"
422422
assert args[1] == "P1"
423423
assert args[2] == "P2"
424424
assert str(args[3]) == "qualification.details.priority"

0 commit comments

Comments
 (0)