Note
This repo is DEPRECATED. Go to the new Mate repo.
- Code: GitHub repo
- License: Apache 2.0
Install unit test dependencies:
pip install pytest pytest-cov
Install QAX dependencies (QA JSON parsing and validation):
pip install jsonschema pip install appdirs pip install --no-deps -e git+https://github.com/hydroffice/hyo2_abc#egg=hyo2.abc pip install --no-deps -e git+https://github.com/hydroffice/hyo2_qax#egg=hyo2.qax
Mate includes a simple command line application. Usage can be displayed as follows:
%> python hyo2/mate/app/cli.py -h usage: cli.py [-h] -i INPUT [-o OUTPUT] optional arguments: -h, --help show this help message and exit -i INPUT, --input INPUT Path to input QA JSON file -o OUTPUT, --output OUTPUT Path to output QA JSON file. If not provided will be printed to stdout.
An example command line is shown below:
python hyo2/mate/app/cli.py --input tests/test_data/input.json --output tests/test_data/test_out.json
Unit tests can be run as follows:
python -m pytest --cov=hyo2.mate --cov-report=html tests/