general_posts/python-weather-api
2024-06-27 20:35:04 +00:00
..
api Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
data Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
database Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
images Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
model Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
script Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
test Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
app.py Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
load_database.py Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
makefile Add python weather api content (#3) 2024-06-27 20:35:04 +00:00
README.md Add python weather api content (#3) 2024-06-27 20:35:04 +00:00

Behavior Testing With Fake Flask Weather API

This sample code is relate to the following blog post:

In this code sample, we look at a simple weather API programmed in Python, using Flask. We provided the code to generate the fake data and scripts to load a sqlite database.

The demo is used to show some strategies to assert the behavior of the API aserting the expected response codes that are expected to occur.

Screenshot

historical weather api python