Helpers for testing APIs
Project description
apitest
This repo contains the python module apitest
.
It is publically available on the python package index as the package evonik-apitest
.
Repo Structure
apitest/ # source code of apitest
examples/ # examples for the use of apitest
notebooks/ # jupyter notebooks with examples and doc
LICENSE # MIT license file
README.md # this readme
setup.py # pypi setup script
Installation
Use the package manager pip to install apitest
as the package evonik-apitest
.
pip install evonik-apitest
Usage
from apitest import Property, Properties, Endpoints
from apitest import Component, Instance, ComponentTest
from apitest.util import rand_str, rand_int
...
Test
To test the current implementation, execute the following:
pytest \
apitest/component.py \
apitest/component_test.py \
apitest/endpoints.py \
apitest/instance.py \
apitest/properties.py \
apitest/property.py \
apitest/util.py \
apitest/test_basic.py
Build & Upload
To build the package and upload a new version to pypi, execute the following commands:
rm -rf build dist evonik_apitest.egg-info
python3 setup.py sdist bdist_wheel --universal
twine upload dist/*
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
evonik-apitest-0.0.14.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for evonik_apitest-0.0.14-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fab073e5b345d671d96a5aec72f8b5a51c77adb237c5e552e437f7c9a67020c6 |
|
MD5 | 6a0c68132c6dcb7b3bf64ec12765c727 |
|
BLAKE2b-256 | 580a6bbcbdd606994d26dd5b021c80866a6cfdfd6c539d5cee73771ade6df1c2 |