Mercurial > kallithea
diff rhodecode/tests/__init__.py @ 3872:2b9da8749065 beta
Use unittest2 for testing
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 19 May 2013 15:42:08 +0200 |
parents | 5067d6e826a5 |
children | 5293d4bbb1ea |
line wrap: on
line diff
--- a/rhodecode/tests/__init__.py Sun May 19 16:08:21 2013 +0200 +++ b/rhodecode/tests/__init__.py Sun May 19 15:42:08 2013 +0200 @@ -25,7 +25,6 @@ import tempfile from os.path import join as jn -from unittest import TestCase from tempfile import _RandomNameSequence from paste.deploy import loadapp @@ -41,6 +40,7 @@ from webtest import TestApp from nose.plugins.skip import SkipTest +from rhodecode.lib.compat import unittest from rhodecode import is_windows from rhodecode.model.meta import Session from rhodecode.model.db import User @@ -157,11 +157,11 @@ pylons.translator._push_object(translator) -class BaseTestCase(TestCase): +class BaseTestCase(unittest.TestCase): def __init__(self, *args, **kwargs): self.wsgiapp = pylons.test.pylonsapp init_stack(self.wsgiapp.config) - TestCase.__init__(self, *args, **kwargs) + unittest.TestCase.__init__(self, *args, **kwargs) class TestController(BaseTestCase):