API testing for BC Data Catalog
Project description
Automated BCDC API Testing
Intention is to test the CKAN API after deployment.
Current tests include:
- verification of preconfigured orgs required for testing
- CRUD tests for packages.
Run Tests
pip install bcdc_apitests
pytest --pyargs bcdc_apitests --junitxml=<xml report name.xml>
Packaging
Configure Dev Env and Running Tests
clone
git clone <repo>
virtualenv
python -m virtualenv ve_bcdctest
./ve_bcdctest/Scripts/activate
python -m pip install -r requirements.txt
- make SRC dir part of python path
export PYTHONPATH=./src
set PYTHONPATH=./src
configure secrets
set the following env vars:
BCDC_API_KEY = <api key>
BCDC_URL = <URL>
run tests
cd src
pytest
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
bcdc_apitests-0.1.0.tar.gz
(14.0 kB
view hashes)
Built Distribution
Close
Hashes for bcdc_apitests-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a5f56e33c4014b55981314709d27e2bf87ed7075cb5f5552050a607975ef00 |
|
MD5 | d6262f612aba17e16e49abd4c04cc4b7 |
|
BLAKE2b-256 | 2c0ccf3907e1adc962767db0bce2442aeeab651a2c57f62a96398ac89ea8fb98 |