Past Meetup

Writing Unit tests and Functional tests in Python

This Meetup is past

99 people went


Writing Unit test and Functional tests in Python

Test Test Test! Writing test cases is one of the fun tasks while coding. Well written test case catch bugs, helps in refactoring the code and helps in building better code base.

During the workshop we will take small command line application which interacts with DB, External Service and business logic. The workshop will focus on writing unit tests and functional tests with py.test [1], mock [2].

The code for the workshop will be available in Github repo [3].


• unittest library features

• Introduction to py.test

• Fixtures

• Asserting exception

• Patching functions and methods

• Mocks/stubs


Kracekumar -

[1]: py.test:

[2] mock:

[3]: Repo: