Practical Django Testing: Pytest, Factory Boy & Hypothesis by Kader Miyanyedi PyConSe | 2025
Writing tests is an important part of every Django project. But Django’s default testing tools can be hard to use, slow, and not flexible enough. In this talk, I will show how to improve your tests using Pytest, Factory Boy, and Hypothesis. We will start with Pytest, a simpler and more readable way to write tests. Then we’ll look at Factory Boy, which helps create test data more easily. Finally, we’ll explore Hypothesis, a tool that generates random test cases to help find hidden bugs. You will leave this talk with clear examples and useful tips to write better tests in your Django projects using modern tools. #pyconse #pyconse2025