diff --git a/header b/header new file mode 100644 index 0000000..7e239f7 --- /dev/null +++ b/header @@ -0,0 +1,8 @@ +######################################################### +## @file : xxx.py +## @desc : kindle note managerment tool +## @create : 2020/05/26 +## @author : Chengan +## @email : douboer@gmail.com +######################################################### + diff --git a/kmanapp.pyproject.user b/kmanapp.pyproject.user index e06a03e..971ce1b 100644 --- a/kmanapp.pyproject.user +++ b/kmanapp.pyproject.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/tdataframe.py b/tdataframe.py index 5db7fd1..7e4ee91 100644 --- a/tdataframe.py +++ b/tdataframe.py @@ -1,4 +1,6 @@ +# CG test pandas + import pandas as pd from kman import * diff --git a/tdict.py b/tdict.py index 7af8150..e1b747c 100644 --- a/tdict.py +++ b/tdict.py @@ -1,11 +1,11 @@ - -############################################# -## PROGRAM: tdict.py -## AUTHOR: Chengan 20200526 -## douboer@gmail.com -## test multi-key dict -############################################# +######################################################### +## @file : tdict.py +## @desc : test dict +## @create : 2020/05/26 +## @author : Chengan +## @email : douboer@gmail.com +######################################################### import re from collections import defaultdict diff --git a/test_kman.py b/test_kman.py index 2139679..8fb5664 100644 --- a/test_kman.py +++ b/test_kman.py @@ -1,11 +1,19 @@ -import unittest2 +######################################################### +## @file : test_kman.py +## @desc : unit test for kindle management +## @create : 2020/05/26 +## @author : Chengan +## @email : douboer@gmail.com +######################################################### + +import unittest from collections import defaultdict from kman import * -class TestKman(unittest2.TestCase): +class TestKman(unittest.TestCase): # initial def setUp(self): LOG2FILE = 1 @@ -213,17 +221,17 @@ class TestKman(unittest2.TestCase): if __name__ == '__main__': """ - suite = unittest2.TestSuite () + suite = unittest.TestSuite () suite.addTest(TestKman('test_parse_section')) suite.addTest(TestKman('test_format_time')) suite.addTest(TestKman('test_format_data')) suite.addTest(TestKman('test_drop_duplicate')) suite.addTest(TestKman('test_add_note_to_highlight')) - run = unittest2.TextTestRunner (verbosity=2) + run = unittest.TextTestRunner (verbosity=2) run.run (suite) """ # not callable sequency - unittest2.main() + unittest.main()