Mercurial > hgsubversion
comparison tests/run.py @ 153:46f6b872c988
tests: Fix some missing suite definitions so that running the full testsuite
does not require installing nose.
| author | Augie Fackler <durin42@gmail.com> |
|---|---|
| date | Tue, 23 Dec 2008 17:45:34 -0600 |
| parents | 24a64fb0e74b |
| children | ba801f44d240 |
comparison
equal
deleted
inserted
replaced
| 152:1fde85a10f9e | 153:46f6b872c988 |
|---|---|
| 2 import sys | 2 import sys |
| 3 import unittest | 3 import unittest |
| 4 | 4 |
| 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_diff | |
| 7 import test_fetch_branches | 8 import test_fetch_branches |
| 8 import test_fetch_command | 9 import test_fetch_command |
| 9 import test_fetch_command_regexes | 10 import test_fetch_command_regexes |
| 10 import test_fetch_exec | 11 import test_fetch_exec |
| 11 import test_fetch_renames | 12 import test_fetch_renames |
| 14 import test_push_command | 15 import test_push_command |
| 15 import test_push_renames | 16 import test_push_renames |
| 16 import test_push_dirs | 17 import test_push_dirs |
| 17 import test_push_eol | 18 import test_push_eol |
| 18 import test_tags | 19 import test_tags |
| 20 import test_utility_commands | |
| 19 | 21 |
| 20 def suite(): | 22 def suite(): |
| 21 return unittest.TestSuite([test_fetch_branches.suite(), | 23 return unittest.TestSuite([test_diff.suite(), |
| 24 test_fetch_branches.suite(), | |
| 22 test_fetch_command.suite(), | 25 test_fetch_command.suite(), |
| 23 test_fetch_command_regexes.suite(), | 26 test_fetch_command_regexes.suite(), |
| 24 test_fetch_exec.suite(), | 27 test_fetch_exec.suite(), |
| 25 test_fetch_renames.suite(), | 28 test_fetch_renames.suite(), |
| 26 test_fetch_symlinks.suite(), | 29 test_fetch_symlinks.suite(), |
| 28 test_push_command.suite(), | 31 test_push_command.suite(), |
| 29 test_push_renames.suite(), | 32 test_push_renames.suite(), |
| 30 test_push_dirs.suite(), | 33 test_push_dirs.suite(), |
| 31 test_push_eol.suite(), | 34 test_push_eol.suite(), |
| 32 test_tags.suite(), | 35 test_tags.suite(), |
| 36 test_utility_commands.suite(), | |
| 33 ]) | 37 ]) |
| 34 | 38 |
| 35 if __name__ == '__main__': | 39 if __name__ == '__main__': |
| 36 runner = unittest.TextTestRunner() | 40 runner = unittest.TextTestRunner() |
| 37 runner.run(suite()) | 41 runner.run(suite()) |
