Search⌘ K
AI Features

Interactive Testing: Introduction

Explore interactive API testing using HTTPie and pytest for Flask applications. Understand how to send requests, manage data types and headers, and address common testing challenges. Gain practical skills to test server-side APIs with confidence.

Introduction

In this chapter, we will review interactive testing with HTTPie and introduce pytest, which is a great way to create Python tests. We’ll also address the challenges that come up with testing a Flask application.

How to use HTTPie

In Server-Side API Creation with Flask , we look at how to use HTTPie to interact with our web API.

$ http POST 0.0.0.0:3000/my-api number=1729 description="First taxi-cab number"
...