Commit Graph

5 Commits

Author SHA1 Message Date
Davide Brunato 910b63603a Add tests for XPathToken helpers and datatypes 2019-08-30 08:16:38 +02:00
Davide Brunato 5d715f98fc Add coverage to testing
- Added .coveragerc
  - Added tests/test_helpers.py
  - Added coverage to develop requirements
  - Code cleaning for xpath_helpers.py
2019-05-17 07:35:41 +02:00
Davide Brunato 489c59e52f Implement string and typed value
- Added UntypedAtomic class to xpath_token.py
  - Renamed function node_value to node_string_value
  - Improving tests
  - Code cleaning
2018-03-16 11:45:45 +01:00
Davide Brunato 7ff6c4ff16 Add testing with Tox
- Implemented mod, div and idiv functions
  - Modified is_document_node() helper: now is True if the argument
    is an ElementTree-like object
  - Fix function optional argument parsing (when has all optional args)
2018-02-28 08:03:44 +01:00
Davide Brunato dde2acac06 First commit
Code derived from XPath the xpaty.py module of the xmlschema package
(v.0.9.21-dev). The code has been splitted into some modules, one for
the base TODP parser, one for the XPath 1.0 parser and one for XPath
2.0 parser. The tests are implemented by the script test_elemenpath.py.

Changes to be committed:
	new file:   .gitignore
	new file:   LICENSE
	new file:   MANIFEST.in
	new file:   README.rst
	new file:   elementpath/__init__.py
	new file:   elementpath/exceptions.py
	new file:   elementpath/todp_parser.py
	new file:   elementpath/xpath1.py
	new file:   elementpath/xpath2.py
	new file:   requirements-dev.txt
	new file:   setup.cfg
	new file:   setup.py
	new file:   test_elementpath.py
2018-02-11 10:56:19 +01:00