Thumbnails for images and videos #87

Merged
Anna Sirota merged 28 commits from thumbnails into main 2024-04-25 17:50:58 +02:00
Showing only changes of commit 4fb859e687 - Show all commits

View File

@ -10,7 +10,6 @@ import files.models
TEST_MEDIA_DIR = Path(__file__).resolve().parent / 'media' TEST_MEDIA_DIR = Path(__file__).resolve().parent / 'media'
# Media file are physically deleted when files records are deleted, hence the override
@override_settings(MEDIA_ROOT=TEST_MEDIA_DIR) @override_settings(MEDIA_ROOT=TEST_MEDIA_DIR)
class TasksTest(TestCase): class TasksTest(TestCase):
@patch('files.utils.resize_image') @patch('files.utils.resize_image')