Davide Brunato
6942be8ac9
Optimize qname_to_prefixed() and get_namespace() helpers
...
- use_empty optional argument added to qname_to_prefixed()
2019-10-23 09:47:49 +02:00
Davide Brunato
b7b6fef418
Base modules refactoring for fix ElementTree import
2019-10-07 15:31:18 +02:00
Davide Brunato
23390a1ed7
Fix xs:keyref ref building and add count_digits() helper
2019-09-20 11:49:01 +02:00
Davide Brunato
f8ad4d975c
Code cleaning: remove get_xml_bool_attribute() helper function
2019-08-09 12:45:11 +02:00
Davide Brunato
4661c1e0bf
Complete versioning filter for XSD 1.1+
...
- etree_pruning() renamed to prune_etree
- version_check() now is used only as selector for prune_etree()
at schema initialization
2019-08-03 05:50:18 +02:00
Davide Brunato
3f99689197
Add etree_pruning(elem, selector) helper function
2019-08-01 23:56:13 +02:00
Davide Brunato
a2a843a322
Add test module for XSD identities
2019-07-29 16:01:19 +02:00
Davide Brunato
7d20e8eff1
Add tests for meta-schema and add XMLSchema11 to package base
...
- Build meta-schema when is used for validation/decode/encode
or the builtin-types() accessor is used
- Add clear() method to XMLSchema base class
2019-06-27 10:48:25 +02:00
Davide Brunato
281a426ec4
Code optimization on parse helpers
...
- Remove iter_xsd_components() and has_hsd_components() helpers
replaced by filter() and any() calls
2019-06-26 07:27:18 +02:00
Davide Brunato
6994da5173
Code refactoring for tests
...
- Rename XMLSchemaTestCase to XsdValidatorTestCase
- Add casepath() helper
- Modify TestResources: derive from TestCase and use casepath()
- Split test_package.py into 3 modules (added test_etree.py and
test_memory.py)
- Update .tox with new environments 'package' and 'memory'
- Replace test_package with test_etree into test_all.py script
- Modify XsdValidatorTestCase.check_schema() to use xs prefix for
XSD namespace and no namespace as targetNamespace for a fast
reuse of common and user sample cases
2019-06-20 15:35:04 +02:00
Davide Brunato
5917873b7f
Add resolve_qname() to XMLSchemaBase
...
- Replace prefixed_to_qname() with resolve_qname()
- Code cleaning for helpers.py module
- Add schema defaults as XMLSchemaBase class attributes
2019-03-14 15:18:28 +01:00
Davide Brunato
878a1815db
Add _parse_xpath_default_namespace() to XsdComponent
...
- Removed get_xpath_default_namespace() helper and its tests
- Removed xpath_default_namespace property from XsdComponent
2019-02-23 12:45:44 +01:00
Davide Brunato
5f10fe67a7
Code cleaning of test scripts
...
- Removed old code of xmlschema imports
- Test header enriched with Python version and platform
2019-01-31 22:09:18 +01:00
Davide Brunato
b8b31f95ca
Remove old XSD datetime types validators
...
- Add test subclass TestDecoding11
- Remove unused regex patterns related to datetime types
2019-01-20 22:59:23 +01:00
Davide Brunato
9d6b88baae
Change copyright years info
2019-01-20 16:56:10 +01:00
Davide Brunato
bd90cacc7a
QNames refactoring
...
- Moved all QNames to the same module
- Create module helpers.py that includes XSD parse utils and name
manipulation helper functions
2018-10-08 23:47:18 +02:00
Davide Brunato
c790838d13
Move XSD builtin QNames to qnames.py module
2018-10-08 15:32:50 +02:00
Davide Brunato
ad5e4debb6
Add re.compile patterns to parseutils internal API
...
- RE_ISO_TIMEZONE changed to accept only [-14:00, 14:00]
- Added XsdExplicitTimezoneFacet
2018-10-07 09:49:02 +02:00
Davide Brunato
a7b7a5716c
Implement test for get_xpath_default_namespace helper function
2018-10-05 15:58:51 +02:00
Davide Brunato
6e29f22271
Implement test for get_xsd_derivation_attribute helper function
2018-10-05 15:34:28 +02:00
Davide Brunato
214da3c7c3
Implement test for get_xml_bool_attribute helper function
...
- get_xsd_bool_attribute renamed to get_xml_bool_attribute
2018-10-05 07:53:24 +02:00
Davide Brunato
79fdea9a55
Code cleaning: removed get_xml_attribute helper function
2018-10-05 07:15:25 +02:00
Davide Brunato
16b0b61a20
Code refactoring for XsdSingleFacet
...
- Created a class for each facet type
- Use of _parse method instead of init
2018-10-04 15:55:55 +02:00
Davide Brunato
52202ecc53
Implement test for get_xsd_component helper function
2018-09-29 10:54:14 +02:00
Davide Brunato
c52d05f5b9
Implement test for has_xsd_components helper function
2018-09-28 23:19:29 +02:00
Davide Brunato
5c5e4f3178
Implement test for iter_xsd_components helper function
2018-09-28 23:10:59 +02:00
Davide Brunato
5133df5a75
Implement test for get_xsd_annotation helper function
2018-09-28 21:24:33 +02:00
Davide Brunato
35685c5964
Start development of release v1.0.6
...
- Added test slots for parse helper functions
2018-09-28 19:09:10 +02:00
Davide Brunato
8e8f53ecb9
Update validator exceptions and test modules
...
- Add test_helpers.py module
- Refactoring of chidren validation error's reason build
- Removed unused qname helper functions (split_*)
- Fix case collection missing files (logger.error message)
2018-09-15 16:56:43 +02:00