feat: Enhance media cleanup functionality with loading indicator and detailed results
This commit is contained in:
@@ -43,6 +43,7 @@ def test_media_cleanup_page_for_manager(client, cid_manager_user):
|
||||
response = client.get(reverse("media_cleanup"))
|
||||
assert response.status_code == 200
|
||||
assert b"Unused Media Cleanup" in response.content
|
||||
assert b"Cleanup in progress" in response.content
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@@ -108,3 +109,4 @@ def test_media_cleanup_live_run_disables_dry_run(client, cid_manager_user, monke
|
||||
assert captured["kwargs"]["interactive"] is False
|
||||
assert b"cleanup ok" in response.content
|
||||
assert b"Recovered space" in response.content
|
||||
assert b"removed" in response.content
|
||||
|
||||
Reference in New Issue
Block a user