Skip to Content
Home /  Courses And Programs / Python Unit Testing

Software unit tests help the developer to verify that the logic of individual pieces of the program is correct, and as such is vital to the success of refactoring (the act of improving software design without changing the behavior of the system). In this course you will learn how to use both Python's builtin unittest module and the Pytest module as a unit testing framework for the Python programming language. This course will cover how to use Pytest and include the following Pytest features: Fixtures, Parameterization, Mocking, Coverage, and the rich plug-in ecosystem for Pytest. The concepts of Behavior-Driven Development (BDD) and Test-Driven Development (TDD) will also be covered. Pytest allows the developer to ensure high test coverage of the code, and allows continuing development of new features without having to perform lots of manual tests. We will also discuss using the tox testing tool to test in different environments and connecting with a Continuous Integration service like Travis-ci. Both the individual developer and the technical architect/project manager will benefit from this course.

Course Number: CSE-41316
Credit: 3.00 unit(s)
Related Certificate Programs: Python ProgrammingSoftware Quality Assurance

+ Expand All