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
Create a virtual environment and install the dependencies:
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txtTo run the tests, you can use the following command:
$ pytestIf you have any questions about the project please raise an Issue on GitHub.