Pytest on Flask: Performing Tests
Learn how to perform tests on a Flask application.
We'll cover the following...
Just as before, the testing is done with assertions. The first step in testing the API is to make a request. The response from the request can be converted to a Python object using json.loads
. Since the API operates on bytes and Python uses ...