amoghrajesh commented on code in PR #44843: URL: https://github.com/apache/airflow/pull/44843#discussion_r1881628969
########## tests/api_fastapi/execution_api/routes/test_task_instances.py: ########## @@ -422,16 +422,37 @@ def teardown_method(self): clear_db_runs() clear_rendered_ti_fields() - def test_ti_put_rtif_success(self, client, session, create_task_instance): + @pytest.mark.parametrize( + "payload", + [ + # string value + {"field1": "string_value", "field2": "another_string"}, + # dictionary value + {"field1": {"nested_key": "nested_value"}}, + # integer value + {"field1": 100}, + # None value + {"field1": None}, + # float value + {"field1": 3.14159}, + # string lists value + {"field1": ["123"], "field2": ["a", "b", "c"]}, + # list of JSON values + {"field1": [1, "string", 3.14, True, None, {"nested": "dict"}]}, + # nested dictionary with mixed types in lists + { + "field1": {"nested_dict": {"key1": 123, "key2": "value"}}, + "field2": [3.14, {"sub_key": "sub_value"}, [1, 2]], Review Comment: Tries to cover a lot of possible combinations. -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org