Sample API tests with Pytest

  • Python Version: 3.11
  • Insall pipenv: pip install pipenv or pip3 install pipenv
  • Navigate to the project directory and run
    • pipenv install: install dependencies and create virtual environment.
    • pipenv shell or source $(pipenv --venv)/bin/activate: activate the virtual environment if it is not already.
  • Run pytest