Skip to content

Follow-up fixes for double-encode trigger PR#64823

Open
jason810496 wants to merge 1 commit intoapache:mainfrom
jason810496:fix/follow-up-double-encode-trigger
Open

Follow-up fixes for double-encode trigger PR#64823
jason810496 wants to merge 1 commit intoapache:mainfrom
jason810496:fix/follow-up-double-encode-trigger

Conversation

@jason810496
Copy link
Copy Markdown
Member

Why

Address unresolved review comments from #64626

What

  • trigger.py: Add # to avoid circular import: Callback to clarify the purpose of lazy import
  • test_encoders.py: Replace module-level pytest.importorskip with a try/except block so FileDeleteTrigger (non-Kafka) tests still run when the Kafka provider is not installed.
  • test_collection.py: Move Trigger, encode_trigger, and BaseEventTrigger imports from inline test bodies to module scope.

@jason810496 jason810496 requested review from XD-DENG and ashb as code owners April 7, 2026 02:40
@jason810496 jason810496 requested review from Lee-W, uranusjr and vatsrahul1001 and removed request for XD-DENG and ashb April 7, 2026 02:40
@jason810496 jason810496 self-assigned this Apr 7, 2026

pytest.importorskip("airflow.providers.apache.kafka")
from airflow.providers.apache.kafka.triggers.await_message import AwaitMessageTrigger
try:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we move it to provider test instead?

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.

2 participants