Console tool for validating the Supplier API implementation
Project description
Supplier API Testing Tool
Requirements
Python 3.7+
Installation
pip install supplier-api-tester
Usage
supplier_tester --help
Usage: supplier_tester [OPTIONS]
Test you Supplier API implementation
Options:
-u, --url TEXT [required]
-k, --api-key TEXT [required]
-p, --product-id TEXT Product ID to call tests on. Required with -a and -t flags
-t, --timeslots Use timeslots
-a, --availability Run availability tests
-r, --reservation Run reservation tests
-b, --booking Run booking tests
-c, --catalog Run product catalog tests
--help Show this message and exit.
Running all tests:
supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A500-FX' # For products without timeslots
supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A400-FX' -t # For products with timeslots
Remember to choose valid product id. It has to refer timeslotted product when you use -t
flag.
Running only availability tests:
supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A500-FX' -a # For products without timeslots
supplier_tester -u 'http://localhost:8000' -k 'secret' -p 'A400-FX' -a -t # For products with timeslots
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
Supplier API tester-1.3.1.tar.gz
(10.7 kB
view hashes)
Built Distributions
Close
Hashes for Supplier API tester-1.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa97f6b499a923c77fb0121521d04a1be4e2c8bb666ea43dc18867a96f4af92d |
|
MD5 | 2ccd8945a6d902bd5e98863e0ff8cc0f |
|
BLAKE2b-256 | 297d8a8e94ba593002d2f18d0d12111a27cdee0dcbeec16c7637dd424269e5a3 |
Close
Hashes for Supplier_API_tester-1.3.1-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | c77b37953c176692f486ab6536ca2d75069ff2ef79472b21c6bc8fd6dce910b7 |
|
MD5 | b2a70d6278023e63b02d7c23483cf67a |
|
BLAKE2b-256 | e3594303ff30a301db80d1d0b0ce5ab1f46fddde3a8e5589c1c646bb4a17fdd7 |
Close
Hashes for Supplier_API_tester-1.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eb0aa3413bb45a1014a5d7fb882b56c7bfe5d17e28a0dc609141b8284c294d8 |
|
MD5 | e09d1cc457b95f9658c2beceb115d9b5 |
|
BLAKE2b-256 | 4ed11ba50ff5186d571a69b0458f16dbf8ffcd9cbbfc65c0b6da3894c36b4adc |