So this was a lot of work...
Updated to use lxml, steep learning curve for someone who never examined XML before...
The merge test code needed some updates because it was last used with an older version of the Gramps XML.
Found another bug in the mergefamilyquery code when test started running; another nonetype issue.
Found another bug in the mergepersonquery code when test started running; another nonetype issue.
Couldn't get the subprocess stuff to work right, so changed code to just call Gramps with capture, similar to export_tests. This in turn required that importxml and exportxml be slightly changed to support StringIO redirection of stdin and stdout.
And test_util needed a change to allow stdout to accept an unencoded stream, so I added an option to use BytesIO for this test as well.
Added some code to save input, result, and expected data to files in Gramps temp directory for debugging whenever an error occurred. Easier to use my editor in diff mode than look at the outputs.
moving to the 'trusty' distribution which has Python 3.3 (coverage needs
3.3 or more) and also a Python 3 version of pyicu. This doesn't use the
virtualenv at all, so the various pip installs are removed. There are
still some minor omissions, noted in FIXMEs; in particular, the code
should be tested under Python 3.2 (which is the minimum Gramps
requirement).
db.select() has become db._select()
This commit refactors database._tables so that they can work properly
after a proxy or filter has been removed.
It adds abstract API called QuerySet which allows a variety of
selections and ordering of data.
Logging was added to sqlite to better see db access.
Additional fixes:
* clearing GenericDB._directory
* test_util_test off-by-one error