Coverage for tests/test_xmlparser/test_real_schema.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-21 15:58 +0200

1''' 

2The below tests try to parse and validate a real schema from the official SBE repository: https://github.com/aeron-io/simple-binary-encoding/tree/master/sbe-samples/src/main/resources 

3''' 

4 

5from os import path 

6from sbe2.xmlparser import parse_schema 

7 

8def schema_path(file_name) -> str: 

9 cur_dir = path.dirname(__file__) 

10 return path.join(cur_dir, 'example_schema', file_name) 

11 

12def test_parse_example_schema(): 

13 schema = parse_schema(schema_path('example-schema.xml'))