Feature/standardize testing and ci - #145
Open
luismeli10 (luismeli10) wants to merge 8 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.