summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2013-06-25 09:37:54 +0800
committerRussell Keith-Magee <russell@keith-magee.com>2013-06-25 09:37:54 +0800
commit0346563939396fb89dec8df31f82eaefaaeb8616 (patch)
treeb49b3365dabdf61f55a54ded7cb4516d62c352e7 /tests
parent5a6f12182ef14883df6534dc3465059b78f54a1c (diff)
Fixed #20653 -- Renamed checksetup management command.
This is to allow future compatibility with work that is ongoing in the 2013 GSoC.
Diffstat (limited to 'tests')
-rw-r--r--tests/check/__init__.py (renamed from tests/compat_checks/__init__.py)0
-rw-r--r--tests/check/models.py (renamed from tests/compat_checks/models.py)0
-rw-r--r--tests/check/tests.py (renamed from tests/compat_checks/tests.py)22
3 files changed, 11 insertions, 11 deletions
diff --git a/tests/compat_checks/__init__.py b/tests/check/__init__.py
index e69de29bb2..e69de29bb2 100644
--- a/tests/compat_checks/__init__.py
+++ b/tests/check/__init__.py
diff --git a/tests/compat_checks/models.py b/tests/check/models.py
index 78a10abba6..78a10abba6 100644
--- a/tests/compat_checks/models.py
+++ b/tests/check/models.py
diff --git a/tests/compat_checks/tests.py b/tests/check/tests.py
index 879988c905..98495e38ae 100644
--- a/tests/compat_checks/tests.py
+++ b/tests/check/tests.py
@@ -1,6 +1,6 @@
-from django.core.compat_checks import base
-from django.core.compat_checks import django_1_6_0
-from django.core.management.commands import checksetup
+from django.core.checks.compatibility import base
+from django.core.checks.compatibility import django_1_6_0
+from django.core.management.commands import check
from django.core.management import call_command
from django.test import TestCase
@@ -86,22 +86,22 @@ class CompatChecksTestCase(TestCase):
def test_management_command(self):
# Again, we unfortunately have to patch out ``warnings``. Different
- old_warnings = checksetup.warnings
- checksetup.warnings = FakeWarnings()
+ old_warnings = check.warnings
+ check.warnings = FakeWarnings()
- self.assertEqual(len(checksetup.warnings._warnings), 0)
+ self.assertEqual(len(check.warnings._warnings), 0)
# Should not produce any warnings.
with self.settings(TEST_RUNNER='myapp.test.CustomRunnner'):
- call_command('checksetup')
+ call_command('check')
- self.assertEqual(len(checksetup.warnings._warnings), 0)
+ self.assertEqual(len(check.warnings._warnings), 0)
with self.settings(TEST_RUNNER='django.test.runner.DiscoverRunner'):
- call_command('checksetup')
+ call_command('check')
- self.assertEqual(len(checksetup.warnings._warnings), 1)
- self.assertTrue("You have not explicitly set 'TEST_RUNNER'" in checksetup.warnings._warnings[0])
+ self.assertEqual(len(check.warnings._warnings), 1)
+ self.assertTrue("You have not explicitly set 'TEST_RUNNER'" in check.warnings._warnings[0])
# Restore the ``warnings``.
base.warnings = old_warnings