Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 491 Bytes

File metadata and controls

15 lines (11 loc) · 491 Bytes

Flask Pytest routing and requests example

Simple sample application demonstrating how to use Pytest with Flask for testing routing and requests. The example includes a basic "hello world" route to demonstrate a GET request. The second example is a route that expects a POST request.

Setup and run instructions

Install the requirements into a virtualenv or your environment of choice

pip install -r requirements.txt

which includes

  • flask
  • pytest

then run the pytest command