~/talk

Don’t Make Assertion Assumptions w/AI you still have to write unit tests

Talkat PyBay 2025 · on Saturday, 2025-10-18· [ai-assisted-development, testing]
links:none on file
slides:none on file

Claims that AI can replace unit testing fail: a hand‑made Flask Pokedex that calls the Pokémon API gets 100% coverage from cursor‑generated tests but the tests mock everything, assert Python behavior, and assert irrelevant list contents. Demo shows replacing noisy multiple asserts with assert_list_equal, adding helpful failure messages, and using assertGreater for nonempty results to make tests maintainable. Cites a GetClear finding of rising code churn and argues refined, precise asserts are necessary because AI output is brittle.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:14Why unit tests matter
  3. 3:21AI and unit test assumptions
  4. 5:30Demo of AI-generated tests
  5. 9:43Problems with AI unit tests
  6. 11:08AI coding trends and risks
  7. 13:13Assertions in unit tests
  8. 15:44Improving AI unit tests
  9. 21:19Conclusion and Q&A
~/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.