2023-07-14 Pytest Information Session

Background

Why test?

What is a unit test?

Unit tests increase confidence but never to 100%

Pytest

Basic unit test components:

  • test_

  • Setup, run, test

Running:

  • How to run

  • Tests pass unless they explicitly throw an uncaught exception

Reusable components:

  • Constants

  • Fixtures for setup

Â