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
30a5950564
close the file before passing to guess()
2016-03-14 20:35:23 -07:00
Martin A. Brown
ad681cd618
assertEquals becomes assertEqual
2016-03-14 20:14:24 -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
762870209c
assertEquals becomes assertEqual
2016-03-14 20:11:17 -07:00
Martin A. Brown
def752760e
use a context to prevent FD leakage
2016-03-14 20:07:40 -07:00
Martin A. Brown
bdbccb6823
use symbolic mode composition
2016-03-14 20:05:25 -07:00
Martin A. Brown
190483d2f6
adjust to slightly different output formattincg
2016-03-10 10:42:33 -08:00
Martin A. Brown
a1b11e6336
add testing of docbook5xml
2016-03-10 10:27:24 -08:00
Martin A. Brown
54cb36f31f
adding another bad invocation test
2016-03-10 09:30:53 -08:00
Martin A. Brown
70a10a5f7c
adding a single index entry
2016-03-10 09:28:55 -08:00
Martin A. Brown
bcb38bdd7d
tiny index
2016-03-10 09:27:54 -08:00
Martin A. Brown
cd7e325c59
add small image file
2016-03-10 08:57:19 -08:00
Martin A. Brown
2180755a97
pep8/pyflakes fixes
2016-03-10 08:48:17 -08:00
Martin A. Brown
abbd433ea1
removed longer tests; pep8/pyflakes fixes
2016-03-10 08:47:44 -08:00
Martin A. Brown
4ad4fae41b
creating separate file for longer-running tests
2016-03-10 08:47:34 -08:00
Martin A. Brown
96aacb8f5c
skip these tests during usual testing (try to stay under 1 sec.)
2016-03-10 08:27:53 -08:00
Martin A. Brown
a3e3e6106f
suppress the "system" config during testing
2016-03-10 08:27:07 -08:00
Martin A. Brown
1ed38c7c0c
improving testing coverage in driver.py
2016-03-09 21:57:25 -08:00
Martin A. Brown
4410fd8fc9
DocBook SGML document with index
2016-03-09 21:49:41 -08:00
Martin A. Brown
7e3fa95813
minor simplifications to testing tools
2016-03-09 20:52:45 -08:00
Martin A. Brown
4f05c202be
slight reorganizing of test sets in file
2016-03-09 18:16:02 -08:00
Martin A. Brown
4901ed94d2
improve testing coverage
2016-03-09 18:11:38 -08:00
Martin A. Brown
d2657321d6
create generic functions for runtime config
2016-03-09 18:11:04 -08:00
Martin A. Brown
c66b325530
improving test coverage of driver.py
2016-03-09 09:35:11 -08:00
Martin A. Brown
a488ae53de
add testing support for new format Asciidoc
2016-03-09 08:09:52 -08:00
Martin A. Brown
631e8fed83
.
2016-03-09 08:09:36 -08:00
Martin A. Brown
f848040e60
improving overall coverage
2016-03-07 22:13:38 -08:00
Martin A. Brown
6a97e4058a
improve orphan verbosity testing
2016-03-07 20:01:26 -08:00
Martin A. Brown
0ff6dc5594
support the config.builddir in the testing suite
2016-03-07 20:00:22 -08:00
Martin A. Brown
29674dd7f0
add Asciidoc example to typeguesser
2016-03-07 19:59:48 -08:00
Martin A. Brown
904f0004bd
add new coverage for swapdirs; improve coverage, as well
2016-03-07 19:59:27 -08:00
Martin A. Brown
c3a2152e6c
improve covareg testing of source.py
2016-03-07 19:58:31 -08:00
Martin A. Brown
f8bb88c518
improve coverage testing of outputs.py
2016-03-07 19:58:14 -08:00
Martin A. Brown
730010dc5b
adding sample Asciidoc document
2016-03-07 19:57:48 -08:00
Martin A. Brown
4fbc08c1be
adjust to deal with new action --publish
2016-03-07 18:56:07 -08:00
Martin A. Brown
88f07a1c69
switch from attribute "type" to "doctype"
2016-03-07 18:55:47 -08:00
Martin A. Brown
5f24879875
adding a function to swap directories
2016-03-07 15:04:04 -08:00
Martin A. Brown
8064ef71e8
changed the error message
2016-03-07 13:54:55 -08:00
Martin A. Brown
a4331ac48e
fix the invocation of summary() in the test
2016-03-07 13:24:40 -08:00
Martin A. Brown
de43a11954
adjust the names of the XSL files
2016-03-03 11:20:57 -08:00
Martin A. Brown
78e67c0e6c
pep8/pyflakes
2016-03-01 22:47:15 -08:00
Martin A. Brown
6e11db3957
add a test case for when user specifies only stem as arg
2016-03-01 22:46:57 -08:00
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
Martin A. Brown
ce060fc5d0
improving coverage of cases in OutputDirectory and OutputCollection
2016-02-16 14:15:15 -08:00
Martin A. Brown
b9defe3e8b
more genericization of testing code
2016-02-16 14:12:42 -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
82a0fce575
initial test script for outputs.py
2016-02-15 23:52:52 -08:00