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_dev-0.2.11.tar.gz
(41.2 kB
view hashes)
Built Distribution
Close
Hashes for bcdc_apitests_dev-0.2.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df06f0526c6d51e953fe8f2546ed40246bd5ffffbd4d17b2a024edcc5cdcfb78 |
|
MD5 | 0ee015c3dff0c852bdb5f86d69eb47ab |
|
BLAKE2b-256 | dded5431d0cfcbdfc1e5ae4c1623a90ebcf1aa4b44d13d55eabe8c361dc5cf28 |