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
- Host: GitHub
- URL: https://github.com/pytest-with-eric/pytest-external-api-example
- Owner: Pytest-with-Eric
- Created: 2024-10-31T10:46:34.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-07T10:11:15.000Z (6 months ago)
- Last Synced: 2025-01-29T12:29:37.749Z (3 months ago)
- Topics: pytest-api-testing, pytest-external-api-testing, python-wiremock
- Language: Python
- Homepage: https://pytest-with-eric.com/api-testing/pytest-external-api-testing/
- Size: 15.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.