Throughout the course of the prior chapter, we started to put together an application, stubbing out a series of useful methods. In this chapter, we will put together some tests, allowing us to ensure that the changes we make throughout the book will not break existing functionality or lead to undesirable results. First, we will look at a variety of tools available to us. Then, we will cover a few tips for writing testable Python code. Finally, we will create a set of unit tests and a set of integration tests, giving us ...
5. Building a Test Suite
Get Finding Ghosts in Your Data: Anomaly Detection Techniques with Examples in Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.