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.3.0.tar.gz
(6.2 kB
view details)
Built Distribution
File details
Details for the file pytest-cldf-0.3.0.tar.gz
.
File metadata
- Download URL: pytest-cldf-0.3.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.56.2 importlib-metadata/4.12.0 keyring/22.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86cd86b3482f0407c925c28972fb8894df0eede7ab2848bc8064f26e3d5f9ddc |
|
MD5 | 890d7a65fb1cfe93665c59d96a4a9ec1 |
|
BLAKE2b-256 | 34061bef2ef3aadeeacc2b0234ef61cbf1d55adf691346fa82e55ff493ef4182 |
File details
Details for the file pytest_cldf-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_cldf-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/28.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.56.2 importlib-metadata/4.12.0 keyring/22.0.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fd032ad677d0dca46878bb33f25eca24609990e696d9dc153fa83cc07f2c787 |
|
MD5 | dafc06ded9b3969557d1cde5d6ee75e4 |
|
BLAKE2b-256 | c2ac3b0dd0e2f394957ac39e31c1fbb5b74a331cd900edf19d1fa3aca66a55dc |