Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Get 20% off all career paths from fullstack to AI
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk demonstrates pytest testing in a Django project, then extends tests with Hypothesis to detect edge cases and increase coverage. It also discusses testing invalid inputs and Django models.
Syllabus
Intro
Welcome
Who am I
Agenda
Overview
Example
Good Practices
Example Endpoint
Simple test
Validation
pytest parameterize
pytest results
Hypothesis
Testing invalid cases
Questions
Hypothesis decorator
pytest vs piunit
how to define the number of cases
applying tests to existing codebase
Hypothesis for jungle models
More questions
Hypothesis catching errors
Taught by
EuroPython Conference