PyCon Israel 2022

🇺🇸 Property Based Testing with Hypothesis: Stronger Tests, Less Work
06-28, 11:30–12:20 (Asia/Jerusalem), Hall 3

Property based tests are a pragmatic way to write better tests with less work.

In this talk, we’ll introduce property based tests and show how they can help you in real-world use-cases.

Automated tests are great. But they’re not free - we all want tests that are good at protecting us from bugs - but to get that, we need to put a lot of work into them.

Property based testing is a technique that saves us a lot of this work. It uses the computer to generate hundreds, or even thousands of test cases - so we don’t have to.
This helps us find bugs sooner and more easily, and have more confidence in our code.

This session will point you in the right direction to start using property based tests in your work.

We will explore the technique through Python’s excellent Hypothesis framework and go over the fundamental concepts, basic usage and tooling.

We’ll also get a feeling for the power and variety of real-world use cases, by creating a test that explores a CRUD web application, finding bugs in edge cases we didn’t know.

We’ll finish with pointers and resources to help you get started.

Session language


Target audience


Other (target audience)

Also applies to test automation engineers - anyone who might write tests using code.

Making software with humans and for humans for close to 20 years (with python always a part of this).

I’m a consultant and freelance developer, and have played a bunch of roles in the past - dev, architect, manager & entrepreneur.

I love automated tests and spend a lot of my time on them, because in every role I’ve played, I’ve seen that investment in testing is one of the best moves a dev team can make.