Mercurial > hgsubversion
diff tests/test_diff.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 | 40474f6c1f84 |
children | 28d0ee605308 |
line wrap: on
line diff
--- a/tests/test_diff.py +++ b/tests/test_diff.py @@ -1,3 +1,5 @@ +import unittest + from mercurial import ui import diff_cmd @@ -32,3 +34,9 @@ class DiffTests(test_util.TestBase): u = ui.ui() diff_cmd.diff_command(u, self.repo, self.wc_path) self.assertEqual(u.stream.getvalue(), expected_diff_output) + + +def suite(): + all = [unittest.TestLoader().loadTestsFromTestCase(DiffTests), + ] + return unittest.TestSuite(all)