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
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
91708bdc3c
make testdatadir an absolute path
2016-02-13 12:31:58 -08:00
Martin A. Brown
8c57a9a994
put all simple examples in a namespace (easier to wrangle)
2016-02-13 11:26:00 -08:00
Martin A. Brown
d16d10f405
in case we do not have SimpleNamespace
2016-02-13 11:24:54 -08:00
Martin A. Brown
eaf2823fd6
read examples data from testdata dir; adapt tests
...
adapt tests to accommodate storing the test data in a separate directory
inspect example objects for signature checking (and extension checking)
adhere to pep8 and pyflakes conventions
2016-02-13 10:54:38 -08:00
Martin A. Brown
0ee20461f3
directory for all sorts of testdata
2016-02-13 10:39:43 -08:00
Martin A. Brown
d9c7ac1944
move testdata to sample directory
2016-02-13 10:39:26 -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