Skip to content

Commit

Permalink
Remove xml json tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed Jul 25, 2023
1 parent 3508711 commit 85ed9b0
Show file tree
Hide file tree
Showing 14,670 changed files with 180 additions and 2,137,767 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 3 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:

jobs:
tests:
name: Python ${{ matrix.python }} - ${{ matrix.mode }}
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mode: [xsd, json, xml]
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python: [ "3.8", "3.9", "3.10", "3.11", "3.12-dev" ]
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -29,4 +28,4 @@ jobs:
pip install -r requirements.txt
- name: Test
run: |
pytest -n auto --mode ${{ matrix.mode }}
pytest -n auto --mode xsd
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,3 @@ 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.

# JSON Mode

Each test case will generate the models for the schema document, parse the xml instance
document and serialize it to json, parse the json document and compare the initial
python object to the object after the roundtrip conversion.

```terminal
$ pytest -n 4 --mode json --runxfail --save-output
```

Results: **22** failed, **14650** passed, **2** warnings

Most of the failures involve test cases with complex instances with wildcards and
derived types.

# XML Mode

Each test case will generate the models directly from the xml instance documents, parse
the xml instance document and serialize it back to xml checking that the output is still
valid.

Results: **3** failed, **14582** passed, **90** skipped, **15** warnings

```terminal
$ pytest -n 4 --mode xml --runxfail
```
59 changes: 0 additions & 59 deletions output/instances/boeingData/ipo1/ipo_1.json

This file was deleted.

45 changes: 0 additions & 45 deletions output/instances/boeingData/ipo1/ipo_2.json

This file was deleted.

65 changes: 0 additions & 65 deletions output/instances/boeingData/ipo2/ipo_1.json

This file was deleted.

35 changes: 0 additions & 35 deletions output/instances/boeingData/ipo2/ipo_2.json

This file was deleted.

59 changes: 0 additions & 59 deletions output/instances/boeingData/ipo3/ipo_1.json

This file was deleted.

41 changes: 0 additions & 41 deletions output/instances/boeingData/ipo3/ipo_2.json

This file was deleted.

Loading

0 comments on commit 85ed9b0

Please sign in to comment.