16 lines
588 B
Markdown
16 lines
588 B
Markdown
# Behavior Testing With Fake Flask Weather API
|
|
|
|
This sample code is relate to the following blog post:
|
|
|
|
- https://thecodebranch.com/posts/python/testing/behavioral-test
|
|
|
|
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
|
|
|
|
 |