Test & Code

209: Testing argparse Applications

Nov 16, 2023
The podcast discusses testing argparse applications, including designing for testability, using pytest and capsys for testing stdout, debugging and preview flags, and reverting to subprocess.run if unable to modify code under test. They also cover logging and print statements, testing with command line arguments and 'slex' function, and adding new requirements and testing techniques.
Ask episode
Chapters
Transcript
Episode notes