As a developer making changes to the GTFS Schedule validation logic,
When I make a breaking behavior change,
I can run pytest and see a corresponding failure message
Notes:
- This validation logic relies on a script in the
jobs/ directory, look at the prior example of testing the GTFS-RT Typer app
- Do not test the inside of the space capsule https://speakerdeck.com/skmetz/magic-tricks-of-testing-railsconf
- The result artifact should be in a predictable location, and containing the same information, given the inputs
- If your test depends on fixture data, such as a file at a specific location, make sure it’s there in setup
- More integration is better than less integration
- Use pytest’s VCR plugin to capture network traffic, but configure it to ignore authentication