Easy quality control for CLDF datasets using pytest
Project description
pytest-cldf
This pytest plugin can be used to run validation of CLDF datsets via the pytest test runner. In particular, this allows hooking up continuous validation with CI services like travis-ci easily.
Continuous validation via Travis-CI
To make sure a dataset - curated in a git repository on GitHub - is continuously, i.e. after each commit, validated, you have to
- hook up the repository with Travis-CI
- add a Travis configuration file
.travis.yml
with the following content:
language: python
python: "3.6"
cache: pip
before_cache: rm -f $HOME/.cache/pip/log/debug.log
install: pip install pytest-cldf
script: pytest --cldf-metadata=cldf/cldf-metadata.json test.py
- add the python file implementing the tests
test.py
:
def test_valid(cldf_dataset, cldf_logger):
assert cldf_dataset.validate(log=cldf_logger)
Extended validation
TODO
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
pytest-cldf-0.1.1.tar.gz
(1.9 kB
view details)
Built Distribution
File details
Details for the file pytest-cldf-0.1.1.tar.gz
.
File metadata
- Download URL: pytest-cldf-0.1.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3763ea7fb004113282b9e89b5d0785133c7ba46d00346a2aa6b74ad7ca544a0f |
|
MD5 | a9a858f0bd7b488e1bd592e0c341b8b3 |
|
BLAKE2b-256 | 22380fbb50ab90e8a308291e93d159982436f80849bf2e1adaeac78529cc5a43 |
File details
Details for the file pytest_cldf-0.1.1-py2-none-any.whl
.
File metadata
- Download URL: pytest_cldf-0.1.1-py2-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9eac5ca2705ee669b0728e9df8e2a545814bf57ad3fa3970281b9ad694325d2 |
|
MD5 | 865484776388a6e491441c5af84ad690 |
|
BLAKE2b-256 | d5533110ec580e6bb280ba30585a04e9f1dedec454ed733170909a51768e587e |