Mercurial > hgsubversion
comparison tests/test_push_command.py @ 834:27a2136e89cd
test_push_command: tests -> all_tests for consistency with other files
| author | Yonggang Luo <luoyonggang@gmail.com> |
|---|---|
| date | Wed, 12 Oct 2011 15:50:47 +0800 |
| parents | e9af7eba88db |
| children | 50a09999dce3 |
comparison
equal
deleted
inserted
replaced
| 833:312b37bc5e20 | 834:27a2136e89cd |
|---|---|
| 488 '(pull again and rebase on a newer revision)') | 488 '(pull again and rebase on a newer revision)') |
| 489 | 489 |
| 490 | 490 |
| 491 def suite(): | 491 def suite(): |
| 492 test_classes = [PushTests, ] | 492 test_classes = [PushTests, ] |
| 493 tests = [] | 493 all_tests = [] |
| 494 # This is the quickest hack I could come up with to load all the tests from | 494 # This is the quickest hack I could come up with to load all the tests from |
| 495 # both classes. Would love a patch that simplifies this without adding | 495 # both classes. Would love a patch that simplifies this without adding |
| 496 # dependencies. | 496 # dependencies. |
| 497 for tc in test_classes: | 497 for tc in test_classes: |
| 498 for attr in dir(tc): | 498 for attr in dir(tc): |
| 499 if attr.startswith('test_'): | 499 if attr.startswith('test_'): |
| 500 tests.append(tc(attr)) | 500 all_tests.append(tc(attr)) |
| 501 return unittest.TestSuite(tests) | 501 return unittest.TestSuite(all_tests) |
