Fixed test breakage following test-settings enhancements

This commit is contained in:
Shai Berger 2014-03-09 10:23:47 +02:00
parent 0615eaf24a
commit 84c137490b
1 changed files with 3 additions and 0 deletions

View File

@ -209,6 +209,9 @@ class ConnectionHandler(object):
"to a %s entry in the TEST setting" % (key, new_key), "to a %s entry in the TEST setting" % (key, new_key),
RemovedInDjango19Warning, stacklevel=2) RemovedInDjango19Warning, stacklevel=2)
test_settings[new_key] = value test_settings[new_key] = value
for key in conn.keys():
if key.startswith('TEST_'):
del conn[key]
# Check that they didn't just use the old name with 'TEST_' removed # Check that they didn't just use the old name with 'TEST_' removed
for key, new_key in six.iteritems(self.TEST_SETTING_RENAMES): for key, new_key in six.iteritems(self.TEST_SETTING_RENAMES):
if key in test_settings: if key in test_settings: