Ask coding questions

← Back to all posts
Unittest reading material?
JohnsonTheGreat (25)

I'm trying to create some Python 3 unit tests for my assignments for next year. I can do some of the basics, however it does get more difficult when I'm working with programs that don't use functions.

I've looked online and I believe that the unittest.mock module is what I'd like to use, however the language in the documentation is beyond me at the moment.
Does anyone have any good reading material on making Python 3 unit tests? In particular, using the mock module inside of unit tests?