Skip to main content

Easy quality control for CLDF datasets using pytest

Project description



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
  • add the python file implementing the tests
def test_valid(cldf_dataset, cldf_logger):
    assert cldf_dataset.validate(log=cldf_logger)

Extended validation


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytest_cldf-0.2.0-py3-none-any.whl (2.5 kB) Copy SHA256 hash SHA256 Wheel py3
pytest-cldf-0.2.0.tar.gz (1.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page