Skip to content

Commit 5a10c8a

Browse files
author
zhenwei-li
committed
the git remote test suite
1 parent 14f3263 commit 5a10c8a

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
11
# -*- coding:utf-8 -*-
22

3-
from com.dvsnier.git.remote.remote import Remote
43
import unittest
54

5+
from com.dvsnier.git.git import Git
6+
from com.dvsnier.git.remote.remote import Remote
7+
68

79
class Test_Remote(unittest.TestCase):
810
''' the test remote '''
11+
912
@classmethod
1013
def setUpClass(cls):
1114
print("...the set up...")
12-
print
15+
print('')
16+
cls._git = Git()
17+
cls._git.config()
18+
cls._prune = Remote()
1319

1420
def setUp(self):
1521
return super(Test_Remote, self).setUp()
1622

1723
def test_branch_prune(self):
18-
prune = Remote()
19-
prune.branch_prune()
20-
print "the test branch_prune is succeed."
21-
pass
24+
Test_Remote._prune.branch_prune()
25+
# print("the test branch_prune is succeed.")
2226

2327
def tearDown(self):
2428
return super(Test_Remote, self).tearDown()
2529

2630
@classmethod
2731
def tearDownClass(cls):
28-
print
32+
print('')
2933
print("...the tear down...")
3034

3135

3236
if __name__ == '__main__':
33-
unittest.main()
37+
suite = unittest.TestLoader().loadTestsFromTestCase(Test_Remote)
38+
unittest.TextTestRunner(verbosity=2).run(suite)

0 commit comments

Comments
 (0)