© Kunal Relan 2019
K. RelanBuilding REST APIs with Flaskhttps://doi.org/10.1007/978-1-4842-5022-8_5

5. Testing in Flask

Kunal Relan1 
(1)
New Delhi, Delhi, India
 

Something that is untested is broken.

This quote comes from an unknown source; however, it’s not entirely true but most of it is right. Untested applications are always an unsafe bet to make. While the developers are confident about their work, in real world things work out differently; hence it’s always a good idea to test the application throughout. Untested applications also make it hard to improve the existing code. However with automated tests, it’s always easy to make changes and instantly know when something breaks. So testing not just only ensures if the application is behaving ...

Get Building REST APIs with Flask: Create Python Web Services with MySQL 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.