Commit Graph

70 Commits

Author SHA1 Message Date
Martin A. Brown 9cb92dce7c build() only returns 0 (success) for all builds
before, the build() function lacked the logic to retain, and return that there
was a failure during the building of one of the documents; it now returns
a 1, which is passed directly to sys.exit(), if any single build fails
2016-03-01 22:21:29 -08:00
Martin A. Brown 97181b167a temporarily forgetting about other doctypes 2016-03-01 21:50:58 -08:00
Martin A. Brown 136678f531 changing the extension to .xml 2016-03-01 21:50:42 -08:00
Martin A. Brown 4939347e85 adjust verbose output a tad 2016-03-01 20:12:01 -08:00
Martin A. Brown b9f606988b try to simplify testing logic
lots of adjustments to testing to make it more understandable (and
self-contained), although not much shorter
2016-03-01 19:53:33 -08:00
Martin A. Brown 890464310a more sample data for stem/ext handling issue 2016-03-01 19:53:13 -08:00
Martin A. Brown 783aa036c8 correcting mismatch in PUBLIC/SYSTEM identifier declaration 2016-03-01 19:52:41 -08:00
Martin A. Brown d0222c748a more sample data for stem/ext handling issue 2016-03-01 19:51:39 -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 9721214e12 rejigger testing to cover functions 2016-03-01 13:32:38 -08:00
Martin A. Brown 211cb6dd5c adding a bunch more testing for driver.py 2016-03-01 11:02:44 -08:00
Martin A. Brown fe3a0ed447 initial commot of test_driver.py 2016-02-29 21:31:55 -08:00
Martin A. Brown 914c37006b complete missing logic in setupcollections 2016-02-29 18:05:51 -08:00
Martin A. Brown 247019e646 pep8 fixes 2016-02-29 18:05:14 -08:00
Martin A. Brown 2974c6b5d7 a little __repr__ test to improve coverage 2016-02-29 18:04:44 -08:00
Martin A. Brown 56b1a027ca access inventory by status class name
create method getByStatusClass() and add testing
2016-02-29 18:03:16 -08:00
Martin A. Brown 40bcabbe79 check attrs before setting 2016-02-29 11:32:30 -08:00
Martin A. Brown ddb5424941 get 100% coverage on the utils.py module 2016-02-29 11:32:01 -08:00
Martin A. Brown 1ee227f3f2 adding some basic testing for configuration file reading 2016-02-29 10:47:48 -08:00
Martin A. Brown 7633cd1c49 adding a missed test for arg_isdirectory 2016-02-29 10:47:30 -08:00
Martin A. Brown 9643c44b7a move many generic package testing tools
test_inventory was a good place to develop some of those tools, but they are
now needed for testing driver.py and others; moving them
2016-02-29 10:46:36 -08:00
Martin A. Brown 2509fcfe16 adding a bad example 2016-02-26 20:07:50 -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 e4d4d552d1 derive some of this stuff for testing 2016-02-26 13:22:39 -08:00
Martin A. Brown 3580544b7c and test a directory-shaped document 2016-02-26 12:49:09 -08:00
Martin A. Brown ffa2fb6a93 get naming convention correct 2016-02-26 12:39:56 -08:00
Martin A. Brown 69b2d7bd76 adding another sample document, this time a directory 2016-02-26 12:37:29 -08:00
Martin A. Brown a7c5df6253 renaming testdata to sample-documents 2016-02-26 12:26:41 -08:00
Martin A. Brown 8c69e05f94 beefing up some testing for new functions 2016-02-23 13:10:10 -08:00
Martin A. Brown e46c844a94 renamed attr to "orphan" 2016-02-22 20:26:07 -08:00
Martin A. Brown f200c0efc2 add function stem_and_ext to the utils 2016-02-19 00:54:16 -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 1578e282cc ensure that statfiles includes directories
statfiles was not including directories; it does now
2016-02-18 21:55:56 -08:00
Martin A. Brown a9203de709 switched to ValueError (more specific Exception) 2016-02-18 17:24:00 -08:00
Martin A. Brown d643883e50 change name_index to name_indexhtml; adapt tests
also minor logging adjustments for clarity and consistency
2016-02-18 09:15:47 -08:00
Martin A. Brown 62198e5973 in execute, before Popen, ensure cmd[0] has +x
rename is_executable() to isexecutable()
adjust testing code to match change to execute()
2016-02-18 09:13:46 -08:00
Martin A. Brown 875e2b2c23 pep8/pyflakes corrections 2016-02-17 19:36:52 -08:00
Martin A. Brown ef355ad8fb add inventory category for broken outputs 2016-02-17 19:30:25 -08:00
Martin A. Brown d3b6ad8e56 add iscomplete property to OutputDirectory 2016-02-17 19:19:48 -08:00
Martin A. Brown bc810dd36c deal with the ENOENT problem in statfiles() 2016-02-17 18:16:20 -08:00
Martin A. Brown 54a8477a33 renaming to inventory.py (and affected tests) 2016-02-17 16:39:42 -08:00
Martin A. Brown c425c2a8e8 completed first round of testing of driver code 2016-02-17 13:50:55 -08:00
Martin A. Brown 2825263f20 flipping the stem/dirname arguments 2016-02-17 13:50:31 -08:00
Martin A. Brown 515595cac9 improve statfiles, deprecate ill-conceived fileset
statfiles now returns a dict() of statinfo and can handle relative paths
2016-02-17 11:18:47 -08:00
Martin A. Brown 57ae52abde simplify addfile, remove unused "content" feature 2016-02-17 10:19:23 -08:00
Martin A. Brown f72583fca6 improve and generalize statfiles and getfileset
statfiles is the heavy lifter; call os.stat() while walking the directory
simplify getfileset; use the keys returned in the statinfo dict()
2016-02-17 10:17:19 -08:00
Martin A. Brown d91f253bd4 pep8 and pyflakes fixes 2016-02-16 19:55:40 -08:00
Martin A. Brown 9845e90a39 adding testing for execute and new function getfileset 2016-02-16 19:52:07 -08:00
Martin A. Brown b23a2ef1c5 adapt to changes in tldptesttools 2016-02-16 14:15:46 -08:00