mtilda commented on PR #25882: URL: https://github.com/apache/airflow/pull/25882#issuecomment-1224272818
> Can you also add a unit test please? @RNHTTR I wrote a draft of some test code. I have not tried running it yet, because I am still learning how to use the testing suite. I went ahead and pushed a commit, so others could see and maybe help me out. I piggy-backed on another similar test (`test_reattach_failing_pod_once`), but maybe I should create a new one. Thoughts? Here is my pseudocode: 1. Create a task from `KubernetesPodOperator` (`name="good_name"`) 1. Execute that task to launch a pod 1. Assert new pod was created -- `create_pod` was called 1. Create a task from `KubernetesPodOperator` -- (`name="bad_name"`) 1. Execute that task to launch a pod 1. Assert new pod was created -- `create_pod` was called -- 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]
