Skip to content

Add missing unit tests for the common-messaging provider base class - #72915

Merged
vincbeck merged 1 commit into
apache:mainfrom
keith991001:add-messaging-base-provider-tests
Sep 11, 2026
Merged

vincbeck merged 1 commit into
apache:mainfrom
keith991001:add-messaging-base-provider-tests

Conversation

@keith991001

Copy link
Copy Markdown
Contributor

Adds the missing test module for airflow.providers.common.messaging.providers.base_provider and removes its entry from OVERLOOKED_TESTS in test_project_structure.py, per the checklist in the meta issue.

The tests cover the concrete surface of BaseMessageQueueProvider: scheme_matches across matching / non-matching / empty / None schemes, the base-class scheme = None default matching nothing, and markers asserting which contract methods are declared abstract (and that scheme_matches is not).

While writing these I noticed the declared abstract contract is out of sync with the in-tree providers (three of them implement only trigger_class, which currently goes unenforced because the base class does not inherit abc.ABC) — that needs a maintainer decision on direction, so it is filed separately rather than "fixed" here; the tests deliberately avoid enshrining the unenforced behavior.

10 tests, all passing locally via uv run --project providers/common/messaging pytest ...; the test_providers_modules_should_have_tests guard passes with the entry removed.

related: #35442


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5)

Generated-by: Claude Code (Fable 5) following the guidelines

The module was listed in OVERLOOKED_TESTS in test_project_structure.py;
covering the scheme-matching contract shrinks the guard list further
(related: apache#35442).
@vincbeck
vincbeck merged commit d3764a6 into apache:main Sep 11, 2026
102 checks passed
xvega pushed a commit to xvega/airflow that referenced this pull request Sep 13, 2026
…pache#72915)

The module was listed in OVERLOOKED_TESTS in test_project_structure.py;
covering the scheme-matching contract shrinks the guard list further
(related: apache#35442).
dlactin pushed a commit to dlactin/airflow that referenced this pull request Sep 14, 2026
…pache#72915)

The module was listed in OVERLOOKED_TESTS in test_project_structure.py;
covering the scheme-matching contract shrinks the guard list further
(related: apache#35442).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants