MLB-LED-Scoreboard / mlb-led-scoreboard

An LED scoreboard for Major League Baseball :baseball:
GNU General Public License v3.0
596 stars 105 forks source link

Update stored API data, test to keep up to date #449

Closed WardBrian closed 1 year ago

WardBrian commented 1 year ago

Subsumes #448

The pitches, teams, and status files all store data from the API, but that we don't want to re-fetch (either to avoid network issues, or to allow customization, or because we need it in a certain format).

This PR updates:

And adds one test file which asserts that our data matches the API results in certain ways. This required a slightly change to data/__init__.py since we were transitively importing driver, which triggered the argparse logic and broke the testing framework.