Skip to content

Oct 12: Unit Testing with pytest

Meet in King 248

Learning Objectives

After today's class, you should be able to:

  • Describe how to run pytest in VS Code (from multiple locations).
  • Explain the role of assert statements in unit tests.
  • Write tests for ordinary inputs and for edge cases.

Lesson Outline

Testing [40 min]

Debugging [10 min]

Your To-Do List

  • Read the Week 8 guide and begin studying