Lee-W commented on code in PR #64211:
URL: https://github.com/apache/airflow/pull/64211#discussion_r2999326982
##########
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_assets.py:
##########
@@ -1408,6 +1408,36 @@ def test_should_respond_200(self, test_client):
"note": None,
}
+ @pytest.mark.usefixtures("configure_git_connection_for_dag_bundle")
+ def test_should_respond_200_with_partition_key(self, test_client):
+ partition_key = "2026-03-23"
+ response = test_client.post("/assets/1/materialize",
json={"partition_key": partition_key})
+ assert response.status_code == 200
+ assert response.json()["partition_key"] == partition_key
+
+ @pytest.mark.usefixtures("configure_git_connection_for_dag_bundle")
+ def test_should_respond_200_with_trigger_fields(self, test_client):
+ payload = {
+ "conf": {"foo": "bar"},
+ "dag_run_id": "asset_materialization_run_1",
Review Comment:
yep, let me add one such case
--
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]