Testing Django Applications with Pytest
Offered By: EuroPython Conference via YouTube
Course Description
Overview
Discover effective strategies for testing Django applications using pytest in this 50-minute conference talk from EuroPython 2013. Explore the integration between pytest and Django, learn about pytest-django, and gain insights into writing testable code. Delve into database access optimization techniques, including the use of factories with factory boy. Understand how pytest fixtures can replace traditional unittest setUp/tearDown methods, bridging both testing approaches. Enhance your Django testing skills and improve the quality of your applications.
Syllabus
Intro
Django's testing documentation
py.test a full-featured Python testing tool
pytest-django Integration between py.test and Django
There is no secret to writing tests... there are only secrets to writing testable code!
Database access ... makes your tests slow
The solution - factories factory boy is an excellent library
py.test fixtures Replacement for unittest setUp/tear Down
Works with both worlds
Taught by
EuroPython Conference
Related Courses
A Brief History of Data StorageEuroPython Conference via YouTube Breaking the Stereotype - Evolution & Persistence of Gender Bias in Tech
EuroPython Conference via YouTube We Can Get More from Spatial, GIS, and Public Domain Datasets
EuroPython Conference via YouTube Using NLP to Detect Knots in Protein Structures
EuroPython Conference via YouTube The Challenges of Doing Infra-As-Code Without "The Cloud"
EuroPython Conference via YouTube