Skip to content

Pytest-with-Eric/pytest-external-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages