Commit Graph

294 Commits

Author SHA1 Message Date
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 82a8a21d18 check for plain file type, too 2016-02-12 23:59:13 -08:00
Martin A. Brown fe507461e8 found another typo while testing 2016-02-12 23:49:04 -08:00
Martin A. Brown 39ca112e40 initial test suite framework and first tests 2016-02-12 23:48:48 -08:00
Martin A. Brown 236ae3cbd4 skip files with no extension (and complain) 2016-02-12 23:14:51 -08:00
Martin A. Brown f76aa736e7 when calling type(), the word type is already present 2016-02-12 23:00:54 -08:00
Martin A. Brown ad73629413 returning the wrong answer... get the FIRST answer (yay for testing) 2016-02-12 23:00:30 -08:00
Martin A. Brown 85e6441fa5 initial impl of class to hold platform-specific details 2016-02-12 13:25:58 -08:00
Martin A. Brown a7a0fe38b3 adding two unused doctypes 2016-02-12 13:25:19 -08:00
Martin A. Brown 85b8df5e86 method .index removed from Python3 string module; not needed anyway 2016-02-12 13:24:55 -08:00
Martin A. Brown 7affd10e0c correct the reference to the renamed guess function 2016-02-12 13:24:21 -08:00
Martin A. Brown 9a75657c1e be more like Python3 2016-02-12 13:24:09 -08:00
Martin A. Brown 7c70a7c4b8 formatname must be a string 2016-02-12 13:00:11 -08:00
Martin A. Brown 92fdf8bec1 case-insensitive sorting is preferred 2016-02-12 12:53:30 -08:00
Martin A. Brown 5263a3a219 fleshing out the linuxdoc processing commands 2016-02-12 12:49:50 -08:00
Martin A. Brown 4652345b7a adding basic required methods 2016-02-12 12:43:45 -08:00
Martin A. Brown ecf2bee8a6 removing unused sys; shortening logger lines 2016-02-12 12:42:58 -08:00
Martin A. Brown 4d0c6f1f1f renaming to 2016-02-12 12:42:34 -08:00
Martin A. Brown 685418cb1e removing unused file 2016-02-12 12:42:03 -08:00
Martin A. Brown 7b97f221bf f argument is file object; also renaming fin to f
fin was the argument and was a filelike object, but
it was pointless, now it is just a file object and called f;
also shrinking the length of two logging lines
2016-02-12 12:25:34 -08:00
Martin A. Brown f45f10913c renaming fin to f 2016-02-12 12:25:16 -08:00
Martin A. Brown eb4de2f877 prettier __repr__ for OutputDir 2016-02-12 10:32:09 -08:00
Martin A. Brown a74bcb645e makefh and which functions in 2016-02-12 10:31:50 -08:00
Martin A. Brown fc9da80f6f nicer visually to process a sorted set of files 2016-02-11 15:31:38 -08:00
Martin A. Brown becb768929 handling multiple source dirs and renaming SourceDir to, simply Sources 2016-02-11 15:16:12 -08:00
Martin A. Brown ce72500bbd fleshing out commands and support for linuxdoc 2016-02-11 11:29:23 -08:00
Martin A. Brown bbe1985a81 changing to __future__ (consistency across project) 2016-02-11 11:29:00 -08:00
Martin A. Brown 627e2ff636 changing to __future__ (consistency across project) 2016-02-11 11:28:38 -08:00
Martin A. Brown 303c133faf yes, the usual .gitignore 2016-02-11 11:27:36 -08:00
Martin A. Brown 6de9aee212 changing names to sourcedir and outputdir 2016-02-11 09:28:31 -08:00
Martin A. Brown 8670927ac6 adding commands for Linuxdoc format 2016-02-11 09:15:50 -08:00
Martin A. Brown 035ff36afb adding OutputDir to 2016-02-11 09:15:22 -08:00
Martin A. Brown 5adbb9af4c removing the output elements from 2016-02-11 09:14:58 -08:00
Martin A. Brown 41bf2ef9c1 decreasing verbosity level on debugging logging 2016-02-11 08:17:04 -08:00
Martin A. Brown b047b22470 better __repr__ and doctype @property
Include a better __repr__ for the SourceDocument object and
make the doctype attribute a @property
2016-02-11 08:12:16 -08:00
Martin A. Brown 35f779aa3e adjusting level of verbosity for some logging 2016-02-11 08:11:36 -08:00
Martin A. Brown 701657e54b initial commit 2016-02-10 19:22:23 -08:00