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.1.2.tar.gz
(13.5 kB
view details)
Built Distribution
File details
Details for the file evonik-apitest-0.1.2.tar.gz
.
File metadata
- Download URL: evonik-apitest-0.1.2.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e301f370951fd31edef18583a45556cc98402f8c456f9ef9e38fb49a6433450 |
|
MD5 | c10c35bd6059bec9cf79961440e98572 |
|
BLAKE2b-256 | 827cca2a30672942f35f7f774266870cf2e1799f7647179e8b2aa0d3a9ea2e60 |
File details
Details for the file evonik_apitest-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: evonik_apitest-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90e4e750d1f365e2b3a60db79f2d831a23b2e00ffcc6848ac5c62a53d699356e |
|
MD5 | 5322d0a6a6a791e86b597a57c2bdeb39 |
|
BLAKE2b-256 | 56c6609796b0f7041291b224b63298d4baf259d0c7b788756ba9223e1a97e2d1 |