abhishekbhakat commented on PR #43482:
URL: https://github.com/apache/airflow/pull/43482#issuecomment-2444897798
> Looks good. Could you add a unit test for this though please?
Done. Added a test which will fail without the code changes like:
```
===============================================================================
short test summary info
================================================================================
FAILED tests/www/views/test_views_dagrun.py::test_dagrun_failed -
AssertionError: assert None in {'failed', 'skipped', 'success',
'upstream_failed'}
+ where None = <TaskInstance: example_bash_decorator.run_this_last
test_dagrun_failed [None]>.state
============================================================================= 1
failed, 1 warning in 6.21s
=============================================================================
root@b8d8405b20f5:/opt/airflow# python -m pytest -vvv
tests/www/views/test_views_dagrun.py::test_dagrun_failed
=================================================================================
test session starts
==================================================================================
```
--
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]