tests: make sure all files are removed before checking assets (#24453)
This commit is contained in:
parent
c7a521e545
commit
d84205e181
|
@ -657,8 +657,9 @@ def test_asset_management_search(app, admin_user):
|
|||
def test_asset_slots_management(app, admin_user):
|
||||
app = login(app)
|
||||
|
||||
if os.path.exists(default_storage.path('uploads')):
|
||||
shutil.rmtree(default_storage.path('uploads'))
|
||||
for path in ('uploads', 'assets'):
|
||||
if os.path.exists(default_storage.path(path)):
|
||||
shutil.rmtree(default_storage.path(path))
|
||||
assert Asset.objects.count() == 0
|
||||
|
||||
with override_settings(COMBO_ASSET_SLOTS={'collectivity:banner': {'label': 'Banner'}}):
|
||||
|
|
Loading…
Reference in New Issue