-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing test for kubernetes compat converters #43248
Add missing test for kubernetes compat converters #43248
Conversation
@romsharon98 , can you review this? I will add more test if that's okay. |
The tests looks good. |
Yeah, couldn't agree more with you, as you can see, that's how I got there
|
Yes but I think we need to add that we call the Mock function correctly for example in this one we should add: mock_convert_kube_model_object.assert_called_with(...) to really verify the logic of the function |
@romsharon98, I have updated for that, will appreciate it if you could review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This PR will add unit tests for kubernetes compat converters, and improve the coverage to 100% of

backwards_compat_converters.py
related: #35442
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.