PyCon Pune 2018

PyCon Pune

Production Level Test Driven Development In Django

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

Technical level: Intermediate

Abstract

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!

Outline

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.

Links

Comments

  • Kushal Das (@kushaldas) Reviewer a year 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) a year ago

    Hello, please share a presentation for you talk ASAP.

Login with Twitter or Google to leave a comment