tirkarthi commented on issue #22289: URL: https://github.com/apache/airflow/issues/22289#issuecomment-1080590688
This is handled in two places where tags can be None and fallback to empty list/set . Removing the or condition to use empty list/set causes below test to fail since `test_bulk_write_to_db` tests by setting `tags = None` that is very similar to the test case here. `pytest -x tests/models/test_dag.py -k test_bulk_write_to_db` https://github.com/apache/airflow/blob/2f5a567977e1219cab16c2548825a1b9eba07ab3/airflow/models/dag.py#L481 https://github.com/apache/airflow/blob/2f5a567977e1219cab16c2548825a1b9eba07ab3/airflow/models/dag.py#L2465 Test case setting tags as None : https://github.com/apache/airflow/blob/2f5a567977e1219cab16c2548825a1b9eba07ab3/tests/models/test_dag.py#L789-L801 -- 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]
