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 , mock .
The code for the workshop will be available in Github repo .
• unittest library features
• Introduction to py.test
• Asserting exception
• Patching functions and methods
Kracekumar - http://kracekumar.com
: py.test: http://pytest.org/latest/
 mock: http://www.voidspace.org.uk/python/mock/
: Repo: https://github.com/kracekumar/UTFT