2025-10-30 –, Auditorium
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.
This talk is for Python developers who want to write better, faster, and more reliable tests using modern Python tools. We’ll start by looking at what Pytest is and how it can replace Django’s built-in test runner, offering cleaner syntax, powerful plugins, and flexible fixtures. Next, we’ll use Factory Boy to create test data in a smarter way avoiding hardcoded values and repetitive setup. Finally, we’ll introduce Hypothesis to explore property-based testing, which helps discover unexpected bugs by generating test inputs automatically.
You’ll see how these tools work together in real Django projects, and learn practical patterns that can improve your testing workflow. No deep testing knowledge is required, just basic Django experience and curiosity about better tools.
I have been working as a backend developer for 4 years, primarily using Python and Django to build web applications and APIs. I enjoy sharing my knowledge by writing articles on Medium and other platforms, focusing on Python. Passionate about clean code and continuous learning, I aim to help the community by delivering clear and practical talks.