changeset 577:930bb6df19a0

tests: make sure single dir clone tests get run by non-nose users
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 26 Feb 2010 14:52:50 +0100 (2010-02-26)
parents d96aa92d9ad9
children de384e4e0423
files tests/run.py tests/test_single_dir_clone.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run.py
+++ b/tests/run.py
@@ -20,6 +20,7 @@ import test_push_renames
 import test_push_dirs
 import test_push_eol
 import test_rebuildmeta
+import test_single_dir_clone
 import test_svnwrap
 import test_tags
 import test_utility_commands
--- a/tests/test_single_dir_clone.py
+++ b/tests/test_single_dir_clone.py
@@ -1,5 +1,6 @@
 import errno
 import shutil
+import unittest
 
 from mercurial import commands
 from mercurial import context
@@ -180,3 +181,7 @@ class TestSingleDir(test_util.TestBase):
         self.pushrevisions()
         self.assertTrue('default' in self.svnls(''))
         self.assertEquals(len(self.repo.branchheads('default')), 1)
+
+def suite():
+    all = [unittest.TestLoader().loadTestsFromTestCase(TestSingleDir)]
+    return unittest.TestSuite(all)