Conversation
Pull Request Review: Integration TestsSummaryThis PR adds comprehensive integration tests that make real API calls to Scryfall, along with a GitHub Actions workflow to run these tests on PRs from develop to main. This is a valuable addition that helps detect API drift and ensures the library works correctly in production. Strengths
Critical Issues1. Missing init.py in integration directory (tests/integration/)
2. Integration tests excluded from pytest discovery (pytest.ini:5)
3. Missing pytest dependency in workflow (.github/workflows/integration-tests.yml:28)
4. Global mutable state (tests/integration/integration_test.py:77)
Code Quality Issues
Performance Considerations
RecommendationsHigh Priority
Suggested Fix for pytest.iniRemove the norecursedirs line and update .github/workflows/tests.yml to exclude integration tests: pytest -m not integration --cov=scrython --cov-report=term-missing --cov-report=xml ConclusionThis is a valuable addition to the project that will help catch API drift early. The implementation is thorough and well-structured. However, there are some integration issues with pytest that should be fixed before merging to ensure the tests can be run both ways as documented. Recommendation: Request changes to fix critical issues 1-4, then approve. |
This PR adds an integration test that uses the actual Scryfall API to ensure that this library doesn't drift from their API, and makes sure that this library actually works. Another Github action was added to run this only when a PR is opened from
develop -> mainensuring that we don't accidentally upset Scryfall.