comparison tests/run.py @ 23:1f8854804795

Add tests for tags and fix a bug in the tag-finding code that was found by the tests.
author Augie Fackler <durin42@gmail.com>
date Wed, 08 Oct 2008 20:37:01 -0500
parents 31aa63ac778c
children e319c9168910
comparison
equal deleted inserted replaced
22:95d0109e495e 23:1f8854804795
5 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 5 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
6 6
7 import test_fetch_command 7 import test_fetch_command
8 import test_fetch_command_regexes 8 import test_fetch_command_regexes
9 import test_push_command 9 import test_push_command
10 import test_tags
10 11
11 def suite(): 12 def suite():
12 return unittest.TestSuite([test_fetch_command.suite(), 13 return unittest.TestSuite([test_fetch_command.suite(),
13 test_fetch_command_regexes.suite(), 14 test_fetch_command_regexes.suite(),
14 test_push_command.suite(), 15 test_push_command.suite(),
16 test_tags.suite(),
15 ]) 17 ])
16 18
17 if __name__ == '__main__': 19 if __name__ == '__main__':
18 runner = unittest.TextTestRunner() 20 runner = unittest.TextTestRunner()
19 runner.run(suite()) 21 runner.run(suite())