Introduction
  • Introduction
Overview of Unit Testing and Test Driven Development
  • What is Unit Testing?
  • What is Test Driven Development?
  • Quick Example TDD Session - The FizzBuzz Kata
  • Unit Testing and Test Driven Development Quiz
Setting Up Your Development Environment
  • Python Virtual Environments
  • Setting up Pytest in PyCharm
  • Setting up Pytest in Eclipse PyDev
Pytest Overview
  • Pytest Overview
  • Test Discovery
  • XUnit Style Setup and Teardown
  • Test Fixtures
  • Assert Statements and Exceptions
  • PyTest Command Line Arguments
The Supermarket Checkout Kata
  • Overview
  • Setup and 1st Test Case
  • Add Items, Add Item Prices, and Calculate Current Total
  • Add Multiple Items and Calculate Total
  • Add and Apply Discounts
  • Throw Exception when Adding an Item with No Price
Test Doubles
  • Overview of Test Doubles, unitest.mock, and monkeypatch
  • unittest.mock Example
  • Test Doubles Quiz
TDD Best Practices
  • TDD Best Practices
Conclusion
  • Conclusion