~/talk

"Jumpstart Python Testing in 5 Minutes Flat"

Talkat TestFlix 2021 · 2021-10-23..10-24· [python, testing]
slides:none on file

A 5-minute demo uses Python 3.8.4 and pytest 6.2.2 to create a simple accumulator class, write tests in a test/ test_accum.py module, and show concrete code: a pytest accumulator fixture that returns a fresh object, assertions that initial count is zero, tests for add() and add(n), and an assertion that direct setting fails. Commands shown include pip install pytest and running tests with python -m pytest to view failures.

AI-written summary · about

  1. 0:00Start
  2. 0:14Why Do People Love Python So Much
  3. 0:46Pick a Test Framework
  4. 2:50Unit Tests for the Accumulator
  5. 3:09Import Statements
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.