Skip to content

Commit ea20c9c

Browse files
author
zhenwei-li
committed
添加 git 注释提示
1 parent 170ab3f commit ea20c9c

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/com/dvsnier/git/git.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

tests/com/dvsnier/git/test_git.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)