Skip to content

Define and test the version 1.0 HTTP contract (#283) - #290

Merged
Mattsface merged 1 commit into
mainfrom
tests/v1-http-contract
Aug 5, 2026
Merged

Define and test the version 1.0 HTTP contract (#283)#290
Mattsface merged 1 commit into
mainfrom
tests/v1-http-contract

Conversation

@Mattsface

Copy link
Copy Markdown
Member

Why

Issue #283 (parent release #282) needs a deterministic offline contract for version 1.0 HTTP behavior before production defaults change. This PR adds and reframes tests only; it does not implement strict defaults.

What

Production files (mlb_api.py, mlb_dataadapter.py, exceptions.py, warnings.py) are unchanged.

Tests

poetry run pytest tests/test_http_contract.py tests/test_http_warnings.py tests/test_mlb_retries.py -v -rxX
poetry run pytest tests/ --ignore=tests/external_tests -v -rxX

Focused: 229 passed, 26 xfailed. Full offline suite: 407 passed, 26 xfailed.

Risk and impact

Open in Web Open in Cursor 

Document strict-default and explicit compatibility-mode behavior for Mlb
and MlbDataAdapter, including status matrix updates (409), v1/v1.1
coverage, 404 preservation, retry-exhausted 429, and warning call-site
expectations. Pending 1.0 defaults are strict xfails (#284, #285).

Co-authored-by: Matthew Spah <spahmatthew@gmail.com>
@Mattsface
Mattsface marked this pull request as ready for review August 5, 2026 20:58

@Mattsface Mattsface left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@Mattsface
Mattsface merged commit 94d944f into main Aug 5, 2026
4 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.

2 participants