~/talk

def test_crash_course_with_pytest()

Talkat PyCon US 2024 · 2024-05-15..05-23· [testing, python]
slides:none on file

Covers concrete pytest mechanics: project setup, running tests, pytest.raises for exception checks, fixture-based setup/teardown, and parameterized tests that expand one function into multiple cases; demonstrates assertion introspection showing variable values on failure and shows how to generate JUnit/XML and HTML reports plus coverage and parallel runs with xdist. Hands-on live coding builds a test project from scratch, runs passing and failing examples, and includes Playwright-based web API and UI testing.

AI-written summary · about

  1. 0:00PyCon and pytest intro
  2. 3:51pytest tutorial overview
  3. 11:10First pytest project setup
  4. 26:10Test failures and assertions
  5. 44:00Math functions with parameterization
  6. 1:08:22From mechanics to practical testing
  7. 1:37:04Accumulator unit testing
  8. 2:01:46pytest fixtures introduction
  9. 2:30:41pytest CLI options
  10. 2:52:20Extending pytest with plugins
  11. 3:01:41Summary and resources
~/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.