uranusjr commented on code in PR #38015:
URL: https://github.com/apache/airflow/pull/38015#discussion_r1521947442
##########
tests/decorators/test_python.py:
##########
@@ -259,6 +259,16 @@ def add_number(num: int) -> int:
add_number()
add_number("test")
+ def test_fails_context_parameter_other_than_none(self):
+ """Fail if a context parameter has a default and it's not None."""
+ with pytest.raises(ValueError):
Review Comment:
Should also check the exception value.
--
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]