amoghrajesh commented on code in PR #67418:
URL: https://github.com/apache/airflow/pull/67418#discussion_r3296160148


##########
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_state.py:
##########
@@ -155,6 +186,16 @@ def test_put_null_value_returns_422(self, client: 
TestClient, create_task_instan
 
         assert response.status_code == 422
 
+    def test_put_nan_returns_422(self, client: TestClient, 
create_task_instance: CreateTaskInstance):
+        ti = create_task_instance()
+        # send NaN as raw JSON (json module rejects it but try sending with a 
allow_nan=True to bypass validation)
+        response = client.put(
+            _api_url(ti.id, "job_id"),
+            content=json.dumps({"value": float("nan")}, 
allow_nan=True).encode(),

Review Comment:
   Good call again, handled it in 597d03685f



-- 
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]

Reply via email to