Skip to content

Fix add_to_pydotorg session cleanup calls#411

Merged
hugovk merged 1 commit into
python:mainfrom
e-q:fix-add-to-pydotorg-session-regression
Jun 15, 2026
Merged

Fix add_to_pydotorg session cleanup calls#411
hugovk merged 1 commit into
python:mainfrom
e-q:fix-add-to-pydotorg-session-regression

Conversation

@e-q

@e-q e-q commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #403, fixing its interaction with the shared requests session introduced in #390.

delete_object() now uses the module-level session, matching the other API helpers, and the post_object() failure test now patches add_to_pydotorg.session.post instead of requests.post.

Tests

  • tox -q -e py313 -- tests/test_add_to_pydotorg.py::test_post_object_raises_on_failure tests/test_add_to_pydotorg.py::test_delete_object_uses_session tests/test_add_to_pydotorg.py::test_create_release_files_cleans_up_created_rows
  • tox -q -e lint
  • tox -q -e mypy

@sethmlarson sethmlarson requested a review from hugovk June 15, 2026 19:58
@hugovk hugovk merged commit 0fd6e16 into python:main Jun 15, 2026
18 checks passed
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.

3 participants