Skip to content

Add a default module mapping for testcontainers-opensearch - #23675

Open
jasonwbarnett wants to merge 1 commit into
pantsbuild:mainfrom
altana-ai:add-testcontainers-opensearch-module-mapping
Open

jasonwbarnett wants to merge 1 commit into
pantsbuild:mainfrom
altana-ai:add-testcontainers-opensearch-module-mapping

Conversation

@jasonwbarnett

Copy link
Copy Markdown
Contributor

testcontainers-opensearch provides testcontainers.opensearch. Nothing in the defaults produces that today: no pattern rule in DEFAULT_MODULE_PATTERN_MAPPING matches testcontainers-*, and the dist-name fallback in module_mapper.py only replaces hyphens with underscores, so the import currently resolves to testcontainers_opensearch.

Verified against the published wheel's file list rather than inferred from the distribution name: it ships testcontainers/opensearch/__init__.py, plus a stray top-level tests package that this entry deliberately does not claim. No other entry claims testcontainers.opensearch, so this adds no ambiguity.

LLM assistance notice

This PR was written primarily by Claude Code (Claude Opus 5): the wheel verification, the diff, the release note, and this description. I directed the scope and reviewed the result.

@tdyas

tdyas commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Approved. Please resolve merge conflict with docs/notes/2.34.x.md.

The distribution provides `testcontainers.opensearch`. Neither the
existing pattern rules nor the hyphen-to-underscore fallback produce a
dotted module name, so the entry has to be explicit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zQB3cnDn6qtYrZaub8Bj9
@jasonwbarnett
jasonwbarnett force-pushed the add-testcontainers-opensearch-module-mapping branch from 975c18b to 494543d Compare September 20, 2026 12:56
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