Skip to content

Feature/standardize testing and ci - #145

Open
luismeli10 (luismeli10) wants to merge 8 commits into
masterfrom
feature/standardize-testing-and-ci
Open

Feature/standardize testing and ci#145
luismeli10 (luismeli10) wants to merge 8 commits into
masterfrom
feature/standardize-testing-and-ci

Conversation

@luismeli10

Copy link
Copy Markdown
Contributor

No description provided.

Replace all integration tests (requiring live ACCESS_TOKEN) with
mock-based unit tests using unittest.mock. Add BaseClientTest base
class, 56 spec-accurate JSON fixtures, and deep assertions aligned
with the MercadoPago OpenAPI spec for all 20 resource clients.

Also adds missing test_cancel for Payment, test_capture/cancel/
update_release_date for AdvancedPayment, and test_point_cancel.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Add push trigger to master branch (was missing — CI only ran on PRs)
- Expand matrix to Python 3.9, 3.10, 3.11, 3.12
- Remove ACCESS_TOKEN requirement — tests are now mock-based
- Add dependency-review-action on pull requests
- Install package with pip install -e for proper module resolution

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Wrap long inline dicts in test_advanced_payment, test_preapproval,
and test_card to stay within the 110-character limit.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Apply isort formatting to 27 files in mercadopago/, tests/, and
examples/ that had pre-existing import ordering issues. All 179
tests continue to pass.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
setuptools>=83.0.0 requires Python 3.10+. Use a conditional constraint:
<83.0.0 for Python 3.9, >=83.0.0 for 3.10+.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
pyproject.toml declares requires-python >=3.10 and
build-system requires setuptools>=83.0.0 (which also requires 3.10+).
Matrix corrected to 3.10, 3.11, 3.12; setuptools constraint restored
to the simple >=83.0.0 form.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant