Skip to content

Mock rejected uploads in publishing tests - #23011

Merged
astral-automations-bot[bot] merged 1 commit into
mainfrom
agent/mock-publish-auth-errors
Oct 30, 2026
Merged

astral-automations-bot[bot] merged 1 commit into
mainfrom
agent/mock-publish-auth-errors

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

The negative-authentication publishing tests fail when TestPyPI returns 503 instead of the expected 403, as seen in #21228. Use local wiremock responses for the rejected uploads and related Simple API requests, preserving the credential, keyring, and error-message coverage without depending on TestPyPI availability. The separate authenticated publishing job remains unchanged.

@astral-automations-bot astral-automations-bot Bot added internal A refactor or improvement that is not user-facing internal:testing Internal testing of behavior labels Oct 30, 2026
@astral-automations-bot
astral-automations-bot Bot enabled auto-merge (squash) October 30, 2026 15:27
@astral-automations-bot
astral-automations-bot Bot merged commit 162c9ec into main Oct 30, 2026
67 checks passed
@astral-automations-bot
astral-automations-bot Bot deleted the agent/mock-publish-auth-errors branch October 30, 2026 15:35

This branch was previously deployed

1 inactive deployment
automations — 92d7bb35 Deployed Oct 30, 2026 by astral-automations-bot[bot] via review / security review #53025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:testing Internal testing of behavior internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants