gramps/gramps/test
Paul Culley e584704e7b Update Merge tests to actually run
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.
2016-12-06 11:17:54 +11:00
..
test Hide db._select(); Refactor db._tables; QuerySet; tests and bug fixes 2016-02-28 15:40:16 -05:00
__init__.py Remove trailing whitespace 2015-08-23 18:42:07 +01:00
regrtest.py Remove trailing whitespace 2015-08-23 18:42:07 +01:00
test_util.py Update Merge tests to actually run 2016-12-06 11:17:54 +11:00