summaryrefslogtreecommitdiff
path: root/tests/regressiontests/file_storage/tests.py
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-24Fixed a few ResourceWarnings.Florian Apolloner
2013-02-04Fixed error message test assertions under Python 3.3Claude Paroz
Thanks Florian Apolloner for testing.
2013-02-04Fixed #17061 -- Factored out importing object from a dotted pathClaude Paroz
Thanks Carl Meyer for the report.
2013-01-01Fixed #19457 -- ImageField size detection failed for some files.Anton Baklanov
This was caused by PIL raising a zlib truncated stream error since we fed the parser with chunks instead of the whole image.
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-12-06Fixed #19367 -- Fixed saving ContentFile in filesystem storageClaude Paroz
This was not working properly when ContentFile was initialized with an unicode string. Thanks Alexey Boriskin for the report and the test.
2012-10-26Avoid dependence on exact Python exception messagesIan Clelland
2012-09-17Fixed #18947 -- Don't make uploaded files executeable by default.Florian Apolloner
Thanks to Lauri Tirkkonen for the patch.
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-29Made FileSystemStorage accept both text and byte streamsClaude Paroz
Thanks Alexey Boriskin for his help on the patch.
2012-08-29Removed unnecessary bytes prefix for ContentFileClaude Paroz
2012-08-29Fixed #11739 -- Made ContentFile support Unicode inputClaude Paroz
2012-08-15Always close files in the file_storage tests.Alex Gaynor
2012-07-20Switched to Python 3-compatible octal notation.Aymeric Augustin
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-04-05Fixed #15644 -- Improved Django File wrapper to support more file-like ↵Claude Paroz
objects. Thanks nickname123 and Michael Palumbo for working on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-03-30Removed some Python < 2.6 compatibility code. Refs #17965.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-08Tested that spaces are properly escaped in files URLs. Refs #5160.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17361 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-30Fixed #16590 -- Accepted a 'name' argument in the constructor of ↵Aymeric Augustin
ContentFile, for consistency with File. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert much of the regression tests to use absolute imports. There's still ↵Alex Gaynor
work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-21Fixed #16703 -- Raise an exception if the storage location of the ↵Jannis Leidel
DefaultStorageFinder is empty. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-13Fixed #16833 -- Removed undocumented `mixin` parameter from the ↵Jannis Leidel
`Storage.open()` method as this was an undocumented and obscure feature. Thanks to Marty and Russell for sanity-checking. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13Fixed #14503 -- Unified multiple implementations of test cases assert* ↵Ramiro Morales
methods that verify a given exception is raised by a callable throughout the Django test suite. Replaced them with a new assertRaisesMessage method of a new SimpleTestCase, a lightweight subclass of unittest.TestCase. Both are also available for usage in user tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-28Fixed #16108 -- Fixed another race condition in the FileSystemStorage ↵Jannis Leidel
backend with regard to deleting a file. Refs #16082, too. Thanks, Aymeric Augustin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-26Fixed #16082 -- Fixed race condition in the FileSystemStorage backend with ↵Jannis Leidel
regard to creating directories. Thanks, pjdelport. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-22Fixes #8593 -- better handling of safe_join case sensitivity on windows. ↵Chris Beaven
Thanks for the initial patch, ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-02-04Fixed #15181 -- Ensure that special characters are escaped when querying for ↵Russell Keith-Magee
the URL of an uploaded file. Thanks to e.generalov for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04Removed all usages of deprecated TestCase methods (self.fail*). This ↵Alex Gaynor
removed most of the Warnings emitted (with -Wall) during the test suite. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-21Fixed #14749 -- added support for using Django's file object as context ↵Alex Gaynor
managers. Thanks to Florian Apolloner for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11Changed a test to be less specific about the exception string it expected. ↵Alex Gaynor
Test suite now passes 100% on PyPy. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09Fixed #11509 -- Modified usage of "Web" to match our style guide in various ↵Russell Keith-Magee
documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08Fixed #10497 -- Added a few time-related methods to the storage API. Thanks ↵Jannis Leidel
for the report and patch to Stephan Jaekel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-07Fixed #14430 - Test failure on Windows with get_image_dimensions since [13715]Luke Plant
Thanks to gabrielhurley for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13Fixed #14254 - More tests for storage backendsLuke Plant
Thanks to steph for the patch, also to tobias for cleanups. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-10Fixed #11158 - get_image_dimensions very slow/incorrect after 1 callLuke Plant
Thanks to kua for the report, and to kua, SmileyChris and SAn for the patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@13715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23Fixed a regression on Python < 2.6 introduced in [12552].Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12555 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-23Fixed #10258: handle duplicate file names better.Jacob Kaplan-Moss
Instead of just continually appending "_" to duplicate file names, Django's default storage now appends `_1`, `_2`, `_3`, etc. Thanks to ianschenck and Thilo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-14Fixed #6054: work around PIL's installation brokeness by detecting either of ↵Jacob Kaplan-Moss
the two ways it can end up being installed. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-29Fixed a few Python 2.3 incompatibilities that were causing test failures.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08Fixed #8817: get_image_dimensions correctly closes the files it opens, and ↵Jacob Kaplan-Moss
leaves open the ones it doesn't. Thanks, mitsuhiko. While I was at it, I converted the file_storage doctests to unit tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-05-08Fixed #9610 -- Fixed duplicate uploaded file name mangling when directory ↵Gary Wilson Jr
contained a dot and file didn't. Based on patches from fadlytabrani and adurdin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-10Yet more file storage testing cleanup for the sake of buildbots; this should ↵Jacob Kaplan-Moss
be the last of it, I hope. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Fixed #8454: added a FILE_UPLOAD_PERMISSIONS setting to control the ↵Jacob Kaplan-Moss
permissoin of files uploaded by the built-in file storage system. Thanks, dcwatson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27FIxed #8156: `UploadedFile.__repr__` now returns a string, a good `__repr__` ↵Jacob Kaplan-Moss
should. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8636 bcc190cf-cafb-0310-a4f2-bffc1f526a37