File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ def __init__(self):
1010 super (Git , self ).__init__ ()
1111
1212 def config (self , output_dir_name = 'git' , file_name = 'vcs' ):
13- 'the configure logging modules'
13+ '''
14+ the configure logging modules
15+ note:
16+ 1. the currently, only one process instance log object is supported.
17+ 2. the following consideration is to support multi process and multi instance log objects
18+ '''
1419 kwargs = {'output_dir_name' : output_dir_name , 'file_name' : file_name }
1520 logging_conf (kwargs )
Original file line number Diff line number Diff line change @@ -16,15 +16,19 @@ def setUp(self):
1616 return super (Test_Git , self ).setUp ()
1717
1818 def test_config (self ):
19+ ''' the test config
20+ note:
21+ 1. the currently, only one process instance log object is supported.
22+ 2. the following consideration is to support multi process and multi instance log objects
23+ '''
1924 git = Git ()
2025 self .assertIsNotNone (git , 'test_config is error.' )
2126 git .config ()
2227 # git.config(output_dir_name='test_git')
2328 # git.config(file_name='record')
2429 # git.config(output_dir_name='test_git', file_name='record')
2530 logging .warn ('the test config is succeed.' )
26- print "the test config is succeed."
27- pass
31+ print ("the test config is succeed." )
2832
2933 def tearDown (self ):
3034 return super (Test_Git , self ).tearDown ()
You can’t perform that action at this time.
0 commit comments