Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to write Python unit tests and update a Python package in this comprehensive video tutorial. Explore Python testing techniques, including using unittest.mock to test print output and mock print functions. Discover how to re-upload a Python package to PyPI. Gain practical experience in writing modular Python functions through code refactoring, breaking down large functions into smaller, testable units. Follow along with the development of a command-line productivity scoreboard for TaskWarrior, and learn how to structure a production-ready Python package. By the end of this tutorial, you'll be equipped to create, test, and publish your own Python tools.
Syllabus
Build w/ Python 5: Writing Python Unit test (+ submitting our python package)
Taught by
Samuel Chan