Skip to main content

Easy quality control for CLDF datasets using pytest

Project description

pytest-cldf

PyPI

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.2.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

pytest_cldf-0.2.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest-cldf-0.2.1.tar.gz.

File metadata

  • Download URL: pytest-cldf-0.2.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for pytest-cldf-0.2.1.tar.gz
Algorithm Hash digest
SHA256 02bb6ec02b5093951b7e3a628dd13bef31e6239fee69decd96b42666186f42a4
MD5 28150adc9cd6eaa6d368baa594f254f0
BLAKE2b-256 c7d3e004dfe1234303a0ba56fcdc105762dbcc62bab636fc9cdf0921f377e4a3

See more details on using hashes here.

File details

Details for the file pytest_cldf-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_cldf-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

File hashes

Hashes for pytest_cldf-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a084fb4630042860b65e82ae57b39d313ab3b4bd1bf2035470491972dcae29e6
MD5 ceee04ff43a277a371aa23f63f5e439d
BLAKE2b-256 060a98983389a949d45897eb3a15b3a9d17b3e76acb836c5f5516a73f4d5ba83

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page