An open API service indexing awesome lists of open source software.

https://github.com/pytest-with-eric/pytest-external-api-example

How To Write Tests For External (3rd Party) API Calls with Pytest
https://github.com/pytest-with-eric/pytest-external-api-example

pytest-api-testing pytest-external-api-testing python-wiremock

Last synced: about 1 month ago
JSON representation

How To Write Tests For External (3rd Party) API Calls with Pytest

Awesome Lists containing this project

README

        

# 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](https://pytest-with-eric.com/api-testing/pytest-external-api-testing/)

## Usage

Create a virtual environment and install the dependencies:

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

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

```bash
$ pytest
```

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