Training Flask unit tests
Flask routes work until they stop working, usually at the worst possible time. Unit tests catch regressions before they reach production. Flask has a built-in test client that makes testing routes clean without spinning up a real server. TL;DR: Write unit tests for Flask applications using the built-in test client: test routes, request handling, and … Read more