dsuhinin commented on code in PR #62174:
URL: https://github.com/apache/airflow/pull/62174#discussion_r2854105073
##########
task-sdk/tests/task_sdk/bases/test_decorator.py:
##########
@@ -69,6 +70,305 @@ def
test_get_python_source_strips_decorator_and_comment(self, tmp_path: Path):
assert cleaned.lstrip().splitlines()[0].startswith("def a_task")
+class DummyDecoratedOperator(DecoratedOperator):
+ custom_operator_name = "@task.dummy"
+
+ def execute(self, context):
+ return self.python_callable(*self.op_args, **self.op_kwargs)
+
+
+def make_op(func, op_args=None, op_kwargs=None, **kwargs):
+ return DummyDecoratedOperator(
+ task_id="test_task",
+ python_callable=func,
+ op_args=op_args or [],
+ op_kwargs=op_kwargs or {},
+ **kwargs,
+ )
+
+
+class TestDefaultFillingLogic:
+ """
+ Tests for the 'fill None after first default' parameter normalization
block.
+ """
+
+ def test_no_params_no_error(self):
+ """Functions with no parameters should construct without issue."""
+
+ def f():
Review Comment:
yep. done.
--
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]