Commit Graph

13 Commits

Author SHA1 Message Date
Davide Brunato b6c6e2ac8f Change get_context() in document module
- Now the optional schema argument is a fallbak in case
    the schema path is not found into XML resource.
2019-09-23 17:29:08 +02:00
Davide Brunato 75e547abe5 Start development of release v1.0.13 2019-06-19 17:05:41 +02:00
Davide Brunato 788135c4c5 Update document APIs
- Added arguments for building XMLResource from xml_document
2019-06-13 16:22:48 +02:00
Davide Brunato 5d04d7e68a Implementing lazy validation
- Added XMLResource.iterfind() for XPath iteration of a resource;
  - Validator API refactored: remove path argument from iter_errors()
    of components, add validate, is_valid, iter_errors to XMLSchema
    class with additional arguments path and schema_path.
  - Fix test case patterns.xml (now find also duplicated IDs)
2019-06-05 07:01:53 +02: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 a34033ee2f Improve matching and use unicode_literals
- Added names attribute for XSD declarations
2018-09-15 22:18:16 +02:00
Davide Brunato 96cb4b57af Refactoring of error and to etree_tostring serialization
- Added namespaces argument to etree_tostring helper method.
  - Refactored validator error string representation.
  - Moved namespaces argument at last position for methods validate
    and iter_errors of class ValidationMixin.
  - Fixed document validate API and added tests for it
2018-08-27 15:43:19 +02:00
Davide Brunato dd43288abd Update test case parser for release
- "--defaults" option removed (cases merged within --skip)
  - "--baseurl" removed (useless, the cases are all URL-based)
2018-07-12 17:32:36 +02:00
Davide Brunato a388689cc1 Complete resource API refactoring
- Set default timeout=30 to fetch_* functions
  - Use keyword arguments (**resource_options) for providing options
    for XML resource related helper functions
  - Add base_url to module level API
2018-07-11 08:58:35 +02:00
Davide Brunato dc87c4ef61 Added fetch_namespaces() to resource API
- etree_get_namespaces() removed from etree.py but left in module
    as alias of fetch_namespaces for back compatibility.
2018-07-10 12:41:39 +02:00
Davide Brunato 779b66a622 Rewrite resource API inside
- Added XMLResource class for representing XML data sources
  - Resource API now are based mainly on this class
  - Attribute 'source' added to schema instances
2018-07-10 10:40:29 +02:00
Davide Brunato f3c73d28ca Add allow_overrides to schema init arguments and add documents.py
- Import schemaLocation attribute can be overriden
  - Re-added the --network flag to test factory arguments to skip
    tests that fail if network access is not available
  - Code cleaning: added documents.py for all module level API
2018-07-09 10:45:06 +02:00