Workshop: Writing unit tests: It's now or never!

Automate UnitTests using nose as you build code together at this workshop.

10 AM to 1:15 PM, 20 May 2018, ThoughtFactory, Bangalore


Are you new to unit testing?
This workshop is aimed at people who would like to improve their development skills by practially learning to write professional quality code.
Modifying production code without unit test cases is similar to walking through a field of landmines and writing and maintaining good unit tests can be real hard work, hence is this workshop, where instead of just covering the syntax, we will introduce most of tips and tricks to write good UnitTests with ease as we build the code together.

Why Attend?

This workshop will help you to adopt unit testing if:

  • You spend a lot of non-billable hours fixing bugs
  • You and your team have adopted unit tests, but now you feel that
    • The tests are slowing you down
    • Having practical, good coverage is real hard
  • You want to adopt unit testing and would like to avoid common pitfalls
  • Your application is huge and developers cannot modify it fast enough.

Who Should Attend?

Anyone who wants to write safer code Eg. Developers using Python and would like to learn how to avoid introducing mistakes in their software.


  • Should be familiar with basic coding with Python.
  • Please bring you own laptop with python 2.7 or above installed
  • Detailed setup instructions will be emailed a week before the workshop day




Each section goes with understanding and implementing each one hands-on.


  • Why unit tests, what is it and why should I care ? (10 mins)
  • Getting Started 40 m
    • Setup checks
    • Unit Testing basics
    • Writing Simple Unit Tests
    • Organising with setup and teardown


  • How to cover most of the code with ease & speed up development & execution
  • Parameterise (10 mins)
  • Isolating Dependencies with Mocks
    • Mock & various ways of using patch (20 mins)
    • Mock with Autospec and SideEffect (20 mins)
  • Managing test Execution (20 mins)
  • Run specific tests
  • Re-run only failed tests
  • Speed up more with multi process
  • Are these tests bringing value (20 mins)
  • Test Reports
  • Coverage Reports

Next Pointers and Resources (10 mins)

What Unit Testing is Not (10 mins)

Dont’s (10 mins)

  • Will work on few frequent typical mistakes which usually we do & tricks on how to avoid them

Q & A (30 mins)

  • We together will work on your problems annd queries


Pooja Shah

Open source enthusiast

Akshay Goel

Tech Lead, MoEngage Inc

What else is happening?

You may also be interested in these related events





ThoughtFactory, Tower D, 2nd Floor, Diamond District, Bengaluru, Karnataka 560102