diff rhodecode/tests/__init__.py @ 4186:7e5f8c12a3fc kallithea-2.2.5-rebrand

First step in two-part process to rename directories to kallithea. This first step is to change all references in the files where they refer to the old directory name.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:04:28 -0400
parents ffd45b185016
children
line wrap: on
line diff
--- a/rhodecode/tests/__init__.py	Wed Jul 02 19:04:00 2014 -0400
+++ b/rhodecode/tests/__init__.py	Wed Jul 02 19:04:28 2014 -0400
@@ -23,9 +23,9 @@
 setup-app`) and provides the base testing objects.
 
 nosetests -x - fail on first error
-nosetests rhodecode.tests.functional.test_admin_settings:TestSettingsController.test_my_account
+nosetests kallithea.tests.functional.test_admin_settings:TestSettingsController.test_my_account
 nosetests --pdb --pdb-failures
-nosetests --with-coverage --cover-package=rhodecode.model.validators rhodecode.tests.test_validators
+nosetests --with-coverage --cover-package=kallithea.model.validators kallithea.tests.test_validators
 
 optional FLAGS:
     RC_WHOOSH_TEST_DISABLE=1 - skip whoosh index building and tests
@@ -55,12 +55,12 @@
 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
-from rhodecode.tests.nose_parametrized import parameterized
-from rhodecode.lib.utils2 import safe_unicode, safe_str
+from kallithea.lib.compat import unittest
+from kallithea import is_windows
+from kallithea.model.meta import Session
+from kallithea.model.db import User
+from kallithea.tests.nose_parametrized import parameterized
+from kallithea.lib.utils2 import safe_unicode, safe_str
 
 
 os.environ['TZ'] = 'UTC'
@@ -150,7 +150,7 @@
     """
     Returns always new directory path.
     """
-    from rhodecode.tests.vcs.utils import get_normalized_path
+    from kallithea.tests.vcs.utils import get_normalized_path
     name = TEST_REPO_PREFIX
     if title:
         name = '-'.join((name, title))