Let The Computer Write The Tests @NorthBayPython
Let The Computer Write The Tests  @NorthBayPython
Uploaded November 2018 | Updated September 2026, 1 day ago
Dan Crosta

2018.northbaypython.org/schedule/presentation/21

The Hypothesis library by David McIver is a property testing library for Python. Property testing is related to fuzz testing, a technique commonly applied in fields where correctness is paramount. With a little guidance from you, the programmer, Hypothesis can generate a wide variety of valid -- and invalid -- inputs to your functions, and test scenarios you might never have considered. It can generate instances of your custom objects, and isn't limited just to simple functions. On top of all of this, when Hypothesis finds a failure, it will simplify the failing case, which aids tremendously in diagnosing what is actually wrong in your code.

We'll take a look at what Hypothesis has to offer, and how you can apply it to your codebase. We'll see how to generate custom test case strategies, and how to generate instances of your own objects. Finally, we'll glance under the hood to see how Hypothesis generates test cases, and how it can automatically simplify them, to gain confidence that it's helping us find real bugs and not just flukes.

A Python conference north of the Golden Gate


North Bay Python is a single-track conference with a carefully curated set of talks representing the diverse Python community and their different areas of interest.

If a topic is less to your interest, or you've met some people you really want to sit down and chat with, we'll have plenty of areas away from the main theatre to catch up and chat.

Our goal is to keep prices as low as possible. That means we won't be catering lunch. Instead, you can look forward to extra-long lunch breaks you can use to explore all of the great food options around the venue.
Let The Computer Write The TestsThe Perfect Python Project - Glyph (Nbpy2024)How I turned a podcast into a business with Python (and some Other Tools we wont talk about)The Python Community Needs More Cats - Deb Nicholson - 2026Python In The Small - Glyph (Nbpy2025)Snek: A Python-Inspired Language for Tiny Embedded ComputersExploration-Oriented ProgrammingBeyond Programming Paradigms (with Python examples) - Luciano Ramalho (North Bay Python 2023)The Source of Change: Bettering Online Open Source Communities Can Begin with YouA-hunting We Will Go: Debugging pytest with Django - Cris Ewing (North Bay Python 2019)Conference Close -  (North Bay Python 2019)No ISPs, No Masters: Modern Mesh Networking with Python - Philip James (Nbpy2025)
North Bay Python |

Let The Computer Write The Tests

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER