Skip to main content

Toolkit for the quality in order to help writing tests

Project description

Quality-Toolkit

Toolkit for the quality in order to help writing tests

Contribution

Clone the project

git clone https://github.com/veepee-oss/quality-toolkit quality-toolkit
cd quality-toolkit

Installation in local

make install

Installation in a project

Edit the project's requirements.txt and add the line :

quality-toolkit

and finish by install the project dependencies :

pip3 install

How to use the classes

Helpers

This library share functions that help to build a steps

example :

from quality_toolkit.helpers.api_functions import send_api_request
from resources.environment import urls

...
context.response = send_api_request("GET", urls.MY_API_URL, [200])
...

Services

This library share services that give customize clients

from quality_toolkit.services.sso import Sso
# Create your own resources for your application
from resources.environment.sso import sso_env

...
context.sso1 = Sso(
    sso_env.SERVER_URL,
    sso_env.REALM_NAME,
    sso_env.CLIENT_ID,
    sso_env.CLIENT_SECRET,
    sso_env.AUDIENCE)
context.sso2 = Sso(
    sso_env.SERVER_URL,
    sso_env.REALM_NAME,
    sso_env.CLIENT_ID,
    sso_env.CLIENT_SECRET,
    sso_env.AUDIENCE)
...
token1 = context.sso1.jwt_token()
token2 = context.sso2.jwt_token()
...

Project details


Download files

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

Source Distribution

quality-toolkit-1.4.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page