How to Test Flask Applications

Routes, Templates, the Database and a tiny bit of load testing

Martin Thoma
Jul 19, 2020 · 6 min read

As a data scientist, I need to make my models accessible. I usually deploy models with Flask. As a software engineer, I want to make sure things work as expected by unit testing them.

Unit Testing websites or web services is hard for multiple reasons: You have Code-within-Code like…