dustyjuhl / api-testing-python

A collection of recipes, examples, and tests around Web API Testing in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Testing in Python

A collection of recipes, examples, and tests around Web API Testing in Python

Examples

Current examples, recipes, etc., that exist in this repo:

Setup

  • 🐍 Python v3.8 or higher is required
  • πŸ“¦ Poetry as the package manager
  • πŸ‘¨πŸ½β€πŸ’» Microsoft's Python extension installed in VSCode
  1. Clone the repo

    git clone https://github.com/qa-at-the-point/api-testing-python.git
  2. Install packages with Poetry

    # Installs all packages from pyproject.toml file
    poetry install
    
    # Then copy the path of the virtual environment
    poetry env info --path
  3. Configure VSCode to use the proper virtual environment

    • Open Command Palette (CMD + SHIFT + P or CTRL + SHIFT + P)
    • Find and click Python: Select Interpreter
    • Paste the virtual environment path if it's not listed

Run Tests

Examples and Recipes should include the instructions and commands to run the tests. However, the base command is always the same:

poetry run pytest

Submit a Bug or Request

If you've found an bug or you have an idea or feature request, please create an issue on the Issues Tab

About

A collection of recipes, examples, and tests around Web API Testing in Python


Languages

Language:Python 100.0%