Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rathorsunpreet/python_api_checks
API Testing of the site https://reqres.in using Pytest and Requests.
https://github.com/rathorsunpreet/python_api_checks
pytest python-3 python3 request requests requests-library-python rest-api test test-automation testing
Last synced: about 2 months ago
JSON representation
API Testing of the site https://reqres.in using Pytest and Requests.
- Host: GitHub
- URL: https://github.com/rathorsunpreet/python_api_checks
- Owner: rathorsunpreet
- License: mit
- Created: 2024-03-16T17:22:02.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-07-23T21:14:12.000Z (6 months ago)
- Last Synced: 2024-07-24T00:24:03.258Z (6 months ago)
- Topics: pytest, python-3, python3, request, requests, requests-library-python, rest-api, test, test-automation, testing
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Reqres Python API Checks
Project performs API Testing of the site [reqres.in](https://reqres.in/) using Pytest and Requests.
## Installation
Download the package from [Github](https://github.com/rathorsunpreet/Python_API_Checks) and unzip it.
```console
# Create virtual environment
python -m venv --prompt . .venv# Activate virtual environment
# Linux / MacOS
source .venv/bin/activate
# Windows
.venv\Scripts\activate.bat# Upgrade pip
python -m pip install --upgrade pip# Installs dependencies
pip install -r requirements.txt
```
## Usage```console
# To execute the tests
pytest# To execute the tests visually
pytest -v# To generate a report after executing tests
pytest -v --html=reports/report.html
```## Upgrade
To upgrade the dependencies, update the version numbers in __requirements.in__ and then in the virtual environment, use the following:
```console
# Updating dependencies
pip-compile -r
```
and then follow the steps to install dependencies from the Install Section.## License
[MIT](https://choosealicense.com/licenses/mit/)