Skip to content

Files

Latest commit

f0975e2 · Nov 7, 2024

History

History
23 lines (15 loc) · 630 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 630 Bytes

Python External (3rd Party) API Testing Tutorial

Description

This repository contains a simple example of how to test an external API with Pytest for the article - How To Write Tests For External (3rd Party) API Calls with Pytest

Usage

Create a virtual environment and install the dependencies:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

To run the tests, you can use the following command:

$ pytest

If you have any questions about the project please raise an Issue on GitHub.