Skip to content

Commit 844c754

Browse files
committed
test: align Home Run Derby live test with strict HTTP behavior
Update the invalid game ID test to expect MlbHttpError for the live API's 400 response instead of treating it as a 404 result. Also close the shared Mlb client during test cleanup.
1 parent 0cf6c56 commit 844c754

5 files changed

Lines changed: 346 additions & 429 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ A Session created by the library sends a package-specific User-Agent:
258258
python-mlb-statsapi/<installed-version>
259259
```
260260

261-
For this release's currently declared package metadata that resolves to `python-mlb-statsapi/0.9.0`. The version is read from the installed distribution metadata, so it always matches the installed release. Only the `User-Agent` header is set; other Requests defaults such as `Accept-Encoding` remain intact, and the header carries no identifiers beyond the package name and version.
261+
For this release's currently declared package metadata that resolves to `python-mlb-statsapi/1.0.0`. The version is read from the installed distribution metadata, so it always matches the installed release. Only the `User-Agent` header is set; other Requests defaults such as `Accept-Encoding` remain intact, and the header carries no identifiers beyond the package name and version.
262262

263263
Headers on a caller-injected Session are left untouched, so applications that set their own User-Agent keep it.
264264

docs/http-transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ python-mlb-statsapi/<installed-version>
198198
With the package version currently declared in project metadata that resolves to:
199199

200200
```text
201-
python-mlb-statsapi/0.9.0
201+
python-mlb-statsapi/1.0.0
202202
```
203203

204204
The version comes from the installed package metadata, so it always matches

0 commit comments

Comments
 (0)