Feature flag credit provider messaging on the dashboard.

When the credit eligibility is disabled, skip the code
that access the CreditProvider table.  This will allow us
to safely delete a column from the table in rc/2015-07-08.
This commit is contained in:
Will Daly
2015-07-06 12:56:15 -07:00
parent 39334db4a4
commit e67975b275
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,8 @@ import unittest
import datetime
import ddt
import pytz
from mock import patch
from django.test import TestCase
from django.test.utils import override_settings
from django.db import connection, transaction
@@ -697,6 +699,7 @@ class CreditMessagesTests(ModuleStoreTestCase, CreditApiTestBase):
request_status = api.get_credit_request_status(self.student.username, self.course.id)
self.assertEqual(len(request_status), 0)
@patch.dict(settings.FEATURES, {"ENABLE_CREDIT_ELIGIBILITY": True})
def test_credit_messages(self):
self._set_creditcourse()