RSH 6: Testing

If it's not tested, you can't trust it

Video

Collaborative notes taken during the session

Testing

import io
import contextlib
my_io_buffer = io.StringIO()
with contextlib.redirect_stdout(my_io_buffer):
    import my_chatty_module # all output is now in the io buffer
    print('abcd') # abcd is now in the io buffer

History cleanup

Feedback