~/talk

PyTest

Talkat PyCon Israel 2017 · 2017-06-11..06-13· [testing, python]
links:none on file
slides:none on file

Shows how to use pytest from installation to diagnosis: install with pip install pytest (inside virtualenv), write plain assert tests, run selected cases with pytest file.py::test_name, and inspect rich failures where pytest pinpoints differing chars, list items or dict keys. Demonstrates marking flaky bugs with @pytest.mark.xfail(reason="bug id"), skipping with skip/skipif, flags (-s to show stdout, -q, -x, --maxfail), and simple fixtures like tmpdir for isolated file-system tests.

AI-written summary · about

  1. 0:00Introduction to PyTest
  2. 1:49Testing methodologies overview
  3. 3:16Writing first PyTest
  4. 6:26Handling failing tests
  5. 8:54Running single failing tests
  6. 10:20Marking expected failures
  7. 13:33Skipping tests conditionally
  8. 16:43PyTest reporting flags
  9. 18:34Advanced assertion reporting
  10. 21:02Handling multiple test failures
  11. 23:09Introduction to fixtures
  12. 25:15Using temp directories in tests
  13. 26:18PyTest resources and summary
~/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.