henry3260 commented on code in PR #58344:
URL: https://github.com/apache/airflow/pull/58344#discussion_r2610156556
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_xcom.py:
##########
@@ -673,7 +702,8 @@ def test_patch_xcom_entry(self, key, patch_body,
expected_status, expected_detai
# Ensure the XCom entry exists before updating
if expected_status != 404:
self._create_xcom(TEST_XCOM_KEY, TEST_XCOM_VALUE)
- new_value = XComModel.serialize_value(patch_body["value"])
+ # The value is double-serialized: first
json.dumps(patch_body["value"]), then json.dumps() again
+ new_value = json.dumps(json.dumps(patch_body["value"]))
Review Comment:
It’s because we call json.dump twice.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]