~/talk

Pytest: Rapid Simple Testing

Talkat Swiss Python Summit 2016 · on Friday, 2016-02-05· [testing, python]
links:none on file
slides:none on file

Pytest replaces unittest boilerplate with real examples: assert introspection shows actual values on failure, parametrize fixtures run many cases cleanly, fixtures use yield for setup/teardown and support scoping, and built‑in helpers include tmp_path/py.path and monkeypatch. Plugins shown include pytest-cov, pytest-bdd, xdist and CI timeouts, and a custom plugin that spawns a browser subprocess plus a test webserver to run end‑to‑end checks. Pytest runs existing unittest and nose suites so migration can be incremental.

AI-written summary · about

  1. 0:00Introduction and audience questions
  2. 1:56Why use pytest over unittest
  3. 4:49Parameterized tests and fixtures
  4. 8:10Built-in fixtures and plugins
  5. 10:22Popular pytest plugins
  6. 12:51Writing custom pytest plugins
  7. 15:51Migrating from unittest to pytest
  8. 16:36Community and funding for pytest
  9. 18:05Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.