docs | |
---|---|
tests |
Validate ERDDAP XML files and snippets to make sure they conform to best practices.
- Free software: MIT license
pip install erddap-xml
You can also install the in-development version with:
pip install https://github.com/gulfofmaine/python-erddap-xml-validator/archive/master.zip
erddap_xml
can be imported into a larger project, and can be used from the command line.
erddap_xml_validate path/to/dataset.xml
will check if an XML chunk for a single dataset is
correctly formatted. It will print Valid Dataset
if it's correctly formatted, or raise an
exception pointing to the specific check that the dataset failed.
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows | set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other | PYTEST_ADDOPTS=--cov-append tox |