Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Test HTTP APIs using plain configuration in JSON.

Project description

https://travis-ci.org/danielatdattrixdotcom/pyapitest.svg?branch=master https://badge.fury.io/py/pyapitest.svg

pyapitest

Test HTTP APIs using plain configuration in JSON.

Objectives

  • Create a HTTP request testing tool that is uses tests written soley in JSON.
  • Make configurations simple, non-repetitive and matched to parameters passed to requests
  • Be a tool to use within the testing framework of the users’ choice, not provide a standalone solution.

Status

Currently in development. I am building it along side writing tests for an existing application, features will be added on an as-needed basis. Specifically the use of the modules jsonschema and jmespath will be implemented after the basics are all addressed. JSON is going to be the default supported config and request/response format, but will be written so that anything that can become a dict can be used.

Development/Testing

pip install pytest bottle six requests cerberus

You’ll find a script for running tests, and a test HTTP server in the root of the repo.

Acknowledgements

I thought the YAML configs used for pyresttest were a clean way to write tests for API endpoints, but wanted to make a tool more easily maintained.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyapitest, version 0.0.1.dev4
Filename, size File type Python version Upload date Hashes
Filename, size pyapitest-0.0.1.dev4-py2.py3-none-any.whl (7.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pyapitest-0.0.1.dev4.tar.gz (6.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page