uranusjr opened a new pull request, #44690: URL: https://github.com/apache/airflow/pull/44690
We accidentally added some db tests in the SDK test suite, which has been incorrectly skipped since the SDK is not supposed to interact with db. The test is legistimate (it’s for a custom operator only used on task execution), but we need to mock those db calls instead. Calls that need db are now always done lazily (when Airflow core is available), and functions all moved to `airflow.models` and tested there instead. A Pytest hook is also added to check the `db_test` marker does not exist, to ensure this does not happen again. -- 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]
