Testing, Debugging and Code Quality

Writing code that works and stays working: unit tests with pytest, debugging, logging, linting, type checking and refactoring.

PYTH-230 Year 2 3 credits 12 lessons planned ▶ Video lessons coming soon

Offered by HSM University · Python Programming

Course content

  1. 1Why testing mattersComing
  2. 2Unit tests with pytestComing
  3. 3Fixtures and parametrized testsComing
  4. 4Mocking and test doublesComing
  5. 5Test-driven developmentComing
  6. 6Debugging with a debuggerComing
  7. 7LoggingComing
  8. 8Linting and code styleComing
  9. 9Static type checkingComing
  10. 10Refactoring safelyComing
  11. 11Code coverage and test strategyComing
  12. 12Capstone: rescuing an untested projectComing

Requirements

Recommended background. You can start any course at any time.

Description

Writing code that works and stays working: unit tests with pytest, debugging, logging, linting, type checking and refactoring.

Part of the Information Technology stream, typically taken in year 2.