Speed up your tests with setUpTestData | Adam Johnson

This video features Adam Johnson at DjangoCon Europe 2021 .

0:30:31
Published June 27, 2021
1,536 views

TestCase.setUpTestData allows you to create test data once per TestCase, rather than once per test. Switching tests to use setUpTestData rather than setUp can speed them up significantly, sometimes as much as 10x faster. This talk will cover how it works, its improvement in Django 3.2, and how to convert your tests to use it.

Presenters

Note: We understand that names change, people change, and bodies change. We respect each individual's journey and privacy. If you have any concerns about a video or need us to remove content, please don't hesitate to contact us. We will handle your request with care and promptly address any issues.

More videos by Adam Johnson

More videos from DjangoCon Europe