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.ymlwith 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
Release files for pytest-cldf 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-cldf-0.3.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_cldf-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / pytest-cldf-0.3.0.tar.gz
| Download URL | pytest-cldf-0.3.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86cd86b3482f0407c925c28972fb8894df0eede7ab2848bc8064f26e3d5f9ddc
|
|
BLAKE2b-256 checksum How to use checksums |
34061bef2ef3aadeeacc2b0234ef61cbf1d55adf691346fa82e55ff493ef4182
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pytest_cldf-0.3.0-py3-none-any.whl
| Download URL | pytest_cldf-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fd032ad677d0dca46878bb33f25eca24609990e696d9dc153fa83cc07f2c787
|
|
BLAKE2b-256 checksum How to use checksums |
c2ac3b0dd0e2f394957ac39e31c1fbb5b74a331cd900edf19d1fa3aca66a55dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|