diff tests/test_utility_commands.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 04800fda7af5
children 91541523ea5c
line wrap: on
line diff
--- a/tests/test_utility_commands.py
+++ b/tests/test_utility_commands.py
@@ -1,4 +1,5 @@
 import os
+import unittest
 import urllib # for url quoting
 
 from mercurial import ui
@@ -91,3 +92,9 @@ class UtilityTests(test_util.TestBase):
         utility_commands.print_wc_url(u, self.repo, self.wc_path)
         expected = 'file://%s\n' % urllib.quote(self.repo_path)
         self.assertEqual(u.stream.getvalue(), expected)
+
+
+def suite():
+    all = [unittest.TestLoader().loadTestsFromTestCase(UtilityTests),
+          ]
+    return unittest.TestSuite(all)