Why unit test flask app?

This page summarizes the projects mentioned and recommended in the original post on /r/Python

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • flaskr-tdd

    Flaskr: Intro to Flask, Test-Driven Development (TDD), and JavaScript

  • flyctl

    Command line tools for fly.io services

    This reminds me of when I didn't understand why people use a virtual environment. It took months for me to understand why, until I wanted to make a flask app that had specific packages/modules that were older and I didn't want it to conflict with my global modules. It took so long because every project I did had no issues with just running python directly from vscode. Once I had to build an app where dependencies mattered, it made way more sense to use venv, and every since I have been using venv for everything.......but now of days, I just use a dockerfile since I am most likely going to deploy an app using azure app services, heroku, or fly.io, or aws. I feel like I am still at that point where I am not seeing the benefits, so its hard for me to grasp why I should do this, espcially when it seems to only work for very basic things. Like, why do I need to test if I get a 200 response from the main / slash endpoint when I can just run python app.py and see if the webapp works? If it didn't work because I added some code, it would IMMEDIATELY fail and show me the error. I wouldn't need to write a test when i can just run the app.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts