feat: BLOCK_STRUCTURES_SETTINGS['PRUNING_ACTIVE'] toggle removed depr31
This commit is contained in:
@@ -255,9 +255,6 @@ class BlockStructureModel(TimeStampedModel):
|
||||
"""
|
||||
Deletes previous file versions for data_usage_key.
|
||||
"""
|
||||
if not settings.BLOCK_STRUCTURES_SETTINGS.get('PRUNING_ACTIVE', False):
|
||||
return
|
||||
|
||||
if num_to_keep is None:
|
||||
num_to_keep = config.num_versions_to_keep()
|
||||
|
||||
|
||||
@@ -80,7 +80,6 @@ class BlockStructureModelTestCase(TestCase):
|
||||
return bsm
|
||||
|
||||
@patch('openedx.core.djangoapps.content.block_structure.models.log')
|
||||
@patch.dict(settings.BLOCK_STRUCTURES_SETTINGS, {'PRUNING_ACTIVE': False})
|
||||
def test_update_or_create(self, mock_log):
|
||||
serialized_data = 'initial data'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user