Skip to content

Conversation

@the-muppet
Copy link
Contributor

Summary

  • Replace VCR cassette-based HTTP mocking with the responses library for Scryfall API tests
  • Use static JSON fixtures validated against Pydantic schemas for deterministic, offline testing

Why

  • VCR cassettes are brittle and require re-recording when API responses change
  • Static fixtures with responses give explicit control over test data
  • Faster test execution without cassette I/O overhead
  • Easier to maintain and review test data as plain JSON files

Changes

  • Added responses library for request mocking
  • Created static fixture files for catalog and card data
  • Updated conftest.py with mock_scryfall_catalog fixture
  • Set assert_all_requests_are_fired=False to allow flexible endpoint mocking

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