Content-Length: 244470 | pFad | http://github.com/apache/airflow/pull/50741

FF Added test to verify decorator signature matches KubernetesPodOperator by Shashwatpandey4 · Pull Request #50741 · apache/airflow · GitHub
Skip to content

Added test to verify decorator signature matches KubernetesPodOperator #50741

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shashwatpandey4
Copy link
Contributor

@Shashwatpandey4 Shashwatpandey4 commented May 17, 2025

What this PR does

Adds a test to verify that the parameters accepted by the kubernetes_task decorator match those of the KubernetesPodOperator.

closes: #48448 which seeks to eliminate manual tracking of changes between operators and their decorators (e.g., with comments like "also update init.pyi").


Scope

This PR:

  • Adds a dedicated test in tests/decorators/
  • Compares the signature of kubernetes_task(...) against KubernetesPodOperator.__init__
  • Ignores known decorator-only params (python_callable, multiple_outputs)
  • Fails if any operator param is missing from the decorator

This sets the stage for adding similar tests for other decorators (e.g., Docker, virtualenv) in future PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add test to verify parameters match between operator and decorator
1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/airflow/pull/50741

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy