- 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
- Modify TestResources.test_remote_schemas_loading() to use examples
from GitHub repository (more responsive)
- Added xmlschema/tests/check_etree_memory.py to check ElementTree memory
usage for a given file
- Remove SafeXMLParserError and use ElementTree.ParseError
- PyElementTree safe APIs errors are re-raised as C mod ParseError
- Simplify ElementTree API and XMLResource class
- The defusedxml seems to be unmaintained and has some problems
with the ElementTree loading
- Replaced by a safe XMLParser that forbids entities processing
- Added several tests
- Fixed start and end expression in regex.get_python_regex():
now puts '^(' and ')$' instead of '^' and '$'.
- Fixed '.' conversion in regex.get_python_regex(): raw string
qualifier removed from string literal.
- Fix for normalize_url to replace backslashes.
- Created a check_url method for TestResources class.
- Use pathlib to check paths: PureWindowsPath class is
used for every Windows path (paths that contain '\\' or
':' or '|'), PurePath otherwise.
- Add leading slash to Windows paths with drive spec
before converting to URL.
- This is a more safer test for Element objects for this package, because it
also checks that the argument is not an instance of ElementPathMixin class
- Add tests for fetch_schema_locations and load_xml_resource functions
- The normalization failed when url contains a .. or . subpaths
and base_url with a valid scheme is provided
- The fix could be also influence issue #44
- Related to residual emptiable content parsing of a top level
group of a sequence
- The patch code have to be moved to XsdGroup
- Added a case for the issue
Some refactoring to XsdComponent: target_namespace, namespace and maps
are trasformed to @property functions.
Update documentation for pass doctests.
Test cases refactoring:
- now the base dir is tests/cases/
- test cases grouped into examples/, features/ and issues/ subdirs
- added --extra argument to test scripts that use extra cases
- add setUpClass() method to test classes
- XMLSchemaTestCase class removed
- common test definitions are now in xmlschema/tests/__init__.py
- xmlschema/tests/_test_common.py deleted