-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Milestone
Description
Most of our examples use assert_that to test examples:
Some of our examples use this pattern:
- Create a path(s)
- Construct fake command line arguments using these paths
- Construct an argparse object to parse these flags
- Do the (often trivial logic)
- Write to a file
- Manually open and read the file
- Compare results.
As well as being cumbersome, this obscures the core of what is being illustrated and tested. As many as possible tests should be updated to use assert_that.
Imported from Jira BEAM-520. Original Jira may contain additional context.
Reported by: altay.