﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24330	Test suites for modular components - storage class, cache backends.	georgewhewell	nobody	"When implementing a custom storage class, there seems to be no way to confirm that it is behaving as expected by django. It would be useful to have a test suite that only used the interface provided by the DEFAULT_FILE_STORAGE class and checked things like saving and reading a file returns the same content, seeking, .url method. As not all methods appear mandatory, these could be skipped for backends which don't implement them. 

For example, the django-storages package's documentation for FTP backend[1] reads:

    This implementation was done preliminary for upload files in admin to remote FTP location and read them back on site by HTTP. It was tested mostly in this configuration, so read/write using FTPStorageFile class may break.

It would be nice to be able to run the same tests against this backend by overriding the DEFAULT_FILE_STORAGE setting to determine if it will break or not.

[1] https://django-storages.readthedocs.org/en/latest/backends/ftp.html "	New feature	closed	Testing framework	1.7	Normal	needsinfo	testing, storage		Unreviewed	0	0	0	0	0	0
