~/talk

What happens when you run manage.py test ?

Talkat PyConline AU 2020 · 2020-09-04..09-06· [python, testing]
slides:none on file

Examines Django's test lifecycle step by step: create test databases, migrate, run system checks, load and run tests, report results, destroy databases, showing where unittest and Django hand off work. Builds two concrete customizations: a trivial fast runner that subclasses discover runner and always returns an A plus, and an output changer that subclasses unittest's text result to produce emoji test result output; both run and the emoji output works. Contrasts this with pytest hooks (20+ hooks, ~700 plugins) as a more composable alternative.

AI-written summary · about

  1. 0:00Start
  2. 2:41Dissecting a Test Run
  3. 7:49test management command
  4. 9:04DiscoverRunner class
  5. 16:55Superfast Runner Custom test runner
~/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.