feat: Enhance media cleanup functionality with loading indicator and detailed results

This commit is contained in:
Ross
2026-05-11 13:10:05 +01:00
parent f4c2c4bdaf
commit cf4cb32c5e
4 changed files with 45 additions and 11 deletions
+2
View File
@@ -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