PyCon Pune 2018

PyCon Pune

Production Level Test Driven Development In Django

Submitted by Kapil Bakshi (@kapilbakshi) on Sep 14, 2017

Technical level: Intermediate Status: Submitted


From writing precise unit tests to writing functional tests, from testing views, forms and rest apis to testing migrations, knowing about mocking, code coverage and important stuff on Continuous Integration.Come one,Come All and learn the magical and secret powers of TDD in Django!


1.) Using Django Test Client to
-> Test Api Requests and Responses
-> Persistent states

2.) Different Test Case Classes In Django
-> SimpleTestCase
-> TransactionTestCase
-> LiveServerTestCase
-> Production Level Examples of each

3.) Testing Other Components
-> Views
-> Forms
-> Models
-> Admins
-> Migrations

4.) Mocking
-> When ?
-> How ?
-> When not ?

5.) Code coverage

6.) Continuous Integration using Jenkins

Speaker bio

Kapil Bakshi is a very passionate techie with an aim to embrace technology, imbibe every bit of it, transcend all the barriers and turn ideas into reality. His experience spans across edtech, fintech and logistics sectors where he has developed things from scratch taking them to a level where they have scaled drastically and have become a brand in their respective domains.

He is currently working at BlackBuck which is redefining the logistics landscape of India, making it reliable and efficient. Kapil is playing an important role there to improve quality of all apps, doing optimisations and helping the company scale to go much beyond.

He is a full stack developer and many times single-handedly built complex features which have proven to be very beneficial for business.

His areas of interest include testing, architectural best practices and security.



  • Kushal Das (@kushaldas) Crew 2 years ago

    Thank you for submitting the talk to PyCon Pune. The talk selection team will contact you here in case of any queries. Meanwhile, please make sure that you provide a link to the presentation slides.

  • Saptak Sengupta (@saptaks) 2 years ago

    Hello, please share a presentation for you talk ASAP.

Login to leave a comment