Final considerations
Before we move on to the next topic, let me just wrap up with some considerations.
First, I hope you have noticed that I haven't tested all the functions I wrote. Specifically, I didn't test get_valid_users, validate, and write_csv. The reason is because these functions are implicitly tested by our test suite. We have tested is_valid and export, which is more than enough to make sure our schema is validating users correctly, and the export function is dealing with filtering out invalid users correctly, respecting existing files when needed, and writing a proper CSV. The functions we haven't tested are the internals, they provide logic that participates to doing something that we have thoroughly tested anyway. Would adding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access