Commit Graph

31 Commits

Author SHA1 Message Date
Martin A. Brown d16be1b076 adding 2016 LDP copyright to each file 2016-04-30 17:49:20 -04:00
Martin A. Brown 38c667691f change reference to md5sums 2016-04-02 10:53:38 -07:00
Martin A. Brown 832daee384 preserve the (relative) full path, silly! 2016-04-01 21:10:12 -07:00
Martin A. Brown 30594d5e4e using unicode everywhere else 2016-03-27 02:14:10 -07:00
Martin A. Brown ec472d8e37 Exception.message deprecated 2016-03-14 22:25:43 -07:00
Martin A. Brown 514af22aea io.StringIO exists in both Python 2 and Python 3 2016-03-14 20:38:50 -07:00
Martin A. Brown a720f4e4b6 switich to io.StringIO for Python 3 and assertEqual (drop the s) 2016-03-14 20:14:10 -07:00
Martin A. Brown 190483d2f6 adjust to slightly different output formattincg 2016-03-10 10:42:33 -08:00
Martin A. Brown c3a2152e6c improve covareg testing of source.py 2016-03-07 19:58:31 -08:00
Martin A. Brown 88f07a1c69 switch from attribute "type" to "doctype" 2016-03-07 18:55:47 -08:00
Martin A. Brown 136678f531 changing the extension to .xml 2016-03-01 21:50:42 -08:00
Martin A. Brown 76d5886e54 fix skipping SCSI-2.4-HOWTO (bad stem/ext handling)
source document identification was skipping any documents which lived in their
own directory AND whose names had a dot; fixed and test support added
2016-03-01 19:49:28 -08:00
Martin A. Brown 2974c6b5d7 a little __repr__ test to improve coverage 2016-02-29 18:04:44 -08:00
Martin A. Brown 1951281cd9 pep8 fixes 2016-02-26 13:24:10 -08:00
Martin A. Brown 7f48a97b94 get a few more cases in the sources.py 2016-02-26 13:22:58 -08:00
Martin A. Brown 3580544b7c and test a directory-shaped document 2016-02-26 12:49:09 -08:00
Martin A. Brown a7c5df6253 renaming testdata to sample-documents 2016-02-26 12:26:41 -08:00
Martin A. Brown d7fac8d65f move logic from SourceCollection to scansourcedirs
moving the source dir scanning logic into a function (in preparation for
further refactoring of single-file or entire-directory source document
detection)
adapting tests (by changing the name from SourceCollection to scansourcedirs).
no other tests required
added new test to ensure that an empty SourceCollection() returned as expected
2016-02-18 23:31:18 -08:00
Martin A. Brown d91f253bd4 pep8 and pyflakes fixes 2016-02-16 19:55:40 -08:00
Martin A. Brown b23a2ef1c5 adapt to changes in tldptesttools 2016-02-16 14:15:46 -08:00
Martin A. Brown 8ae6cf7d69 renaming examples.sources to example.sources 2016-02-16 11:11:37 -08:00
Martin A. Brown 9df21df31a renaming examples.examples to examples.sources 2016-02-16 11:10:32 -08:00
Martin A. Brown d392965862 factoring out common testing utilities
renamed TestSourceCollection to TestToolsFilesystem for use in
testing both sources.py and outputs.py
2016-02-16 10:57:44 -08:00
Martin A. Brown 78ee9eb459 revising the mechanism for subdir creation 2016-02-16 10:44:05 -08:00
Martin A. Brown 7b08ececf4 renaming OutputDirs more appropriately to OutputCollection 2016-02-15 23:52:08 -08:00
Martin A. Brown 55ef688015 adjust SourceDirs to behave like a dictionary 2016-02-15 21:51:56 -08:00
Martin A. Brown 01bee4a269 adjust error-raising invocations (and tests) 2016-02-15 21:32:35 -08:00
Martin A. Brown 3ad14231aa renaming Sources to SourceDirs 2016-02-15 20:58:30 -08:00
Martin A. Brown a1d457a3ae initial test support for document enumeration
check to see that empty directories are handled correctly
check to see that single, multiple files in one dir are handled
check to see that single files in multiple directories are handled
2016-02-13 12:32:05 -08:00
Martin A. Brown 336faa4df5 test __init__ for missing/wrong type SourceDocument 2016-02-12 23:59:44 -08:00
Martin A. Brown 39ca112e40 initial test suite framework and first tests 2016-02-12 23:48:48 -08:00