Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tefra/xsdata-w3c-tests
Naive XML Bindings for python vs W3C XML Schema 1.1 test suite
https://github.com/tefra/xsdata-w3c-tests
binding code-generator dataclasses parser python schema serializer w3c wsdl xml xsd
Last synced: about 2 months ago
JSON representation
Naive XML Bindings for python vs W3C XML Schema 1.1 test suite
- Host: GitHub
- URL: https://github.com/tefra/xsdata-w3c-tests
- Owner: tefra
- License: mit
- Created: 2020-02-10T21:59:47.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-01T04:51:03.000Z (2 months ago)
- Last Synced: 2024-12-01T05:31:57.561Z (2 months ago)
- Topics: binding, code-generator, dataclasses, parser, python, schema, serializer, w3c, wsdl, xml, xsd
- Language: Python
- Homepage: https://xsdata.readthedocs.io
- Size: 40.4 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xsdata-w3c-tests
[![Build Status](https://github.com/tefra/xsdata-w3c-tests/workflows/tests/badge.svg)](https://github.com/tefra/xsdata-w3c-tests/actions)
Run xsdata code generator and data binding modules against the W3C XML Schema 1.1 test
suite.The invalid schema tests are ignored (~12k tests) as xsdata is not really a validator.
# XSD Mode
Each test case will generate the models for the schema document, parse the xml instance
document and serialize it back to xml checking that the output is still valid.```terminal
$ pytest -n 4 --mode xsd --runxfail --save-output
```Results: **5** failed, **14580** passed, **89** skipped, **16** warnings
The save output option will store the output xml document. The xml mode's drawback is
that it doesn't do any quality checks that all elements and values actually match the
original document.