From b774e0a82e1af0f438d4e1d20835281be6b3e9b8 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 25 Oct 2017 10:09:44 -0400 Subject: [PATCH] Move ENABLED_CACHES into schedule test base class --- .../management/commands/tests/test_send_recurring_nudge.py | 2 -- .../management/commands/tests/test_send_upgrade_reminder.py | 2 -- .../djangoapps/schedules/management/commands/tests/tools.py | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/openedx/core/djangoapps/schedules/management/commands/tests/test_send_recurring_nudge.py b/openedx/core/djangoapps/schedules/management/commands/tests/test_send_recurring_nudge.py index 254e4d46ab..3b7e3832b9 100644 --- a/openedx/core/djangoapps/schedules/management/commands/tests/test_send_recurring_nudge.py +++ b/openedx/core/djangoapps/schedules/management/commands/tests/test_send_recurring_nudge.py @@ -49,8 +49,6 @@ NUM_COURSE_MODES_QUERIES = 1 class TestSendRecurringNudge(ScheduleBaseEmailTestBase): # pylint: disable=protected-access - ENABLED_CACHES = ['default'] - def setUp(self): super(TestSendRecurringNudge, self).setUp() diff --git a/openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py b/openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py index ebd496abf9..0f76b6190b 100644 --- a/openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py +++ b/openedx/core/djangoapps/schedules/management/commands/tests/test_send_upgrade_reminder.py @@ -62,8 +62,6 @@ LOG = logging.getLogger(__name__) @freeze_time('2017-08-01 00:00:00', tz_offset=0, tick=True) class TestUpgradeReminder(ScheduleBaseEmailTestBase, SharedModuleStoreTestCase): - ENABLED_CACHES = ['default'] - @classmethod def setUpClass(cls): super(TestUpgradeReminder, cls).setUpClass() diff --git a/openedx/core/djangoapps/schedules/management/commands/tests/tools.py b/openedx/core/djangoapps/schedules/management/commands/tests/tools.py index e83526df76..faeb95a051 100644 --- a/openedx/core/djangoapps/schedules/management/commands/tests/tools.py +++ b/openedx/core/djangoapps/schedules/management/commands/tests/tools.py @@ -1,4 +1,5 @@ from openedx.core.djangolib.testing.utils import CacheIsolationTestCase, FilteredQueryCountMixin class ScheduleBaseEmailTestBase(FilteredQueryCountMixin, CacheIsolationTestCase): - pass + + ENABLED_CACHES = ['default']