Testing, TDD in Python
Srimathi H (~srimathi) |
In this workshop, we will cover the importance of tests, introduce the paradigm of test driven development (TDD) and do a hands session of writing unit tests using pytest framework. The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. At the end of this workshop, participants will be able to start writing unit tests and understand the various nuances of testing, mocks, testing asynchronous functions etc.
We will cover in details how to mock and test: - Functions - Classes - Class members - Object members - Coroutines - External endpoints - DB connections - Exceptions - Async functions
We will try to answer the imperative question - Does TDD double the work?
Basics of Python
This is a hands on workshop at one of the PyLadies Chapter meet in Chennai in March 2019. This workshop will add much more to this content based on the points discussed in the above "Description" section..
This workshop will be conducted by the following set of people:
Srimathi Harinarayanan is a Solution Consultant at Sahaj Software Solutions. She has close to 12+ years of experience building scalable server side solutions as well as client applications based off browsers and mobiles. Prior to joining Sahaj, she has worked at Thoughtworks as well as product companies like Oracle and Dell.
We would like to share our learnings from building robust backends with excellent code coverage via tests, benefits of it and our learnings from it.