Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test non-default mode in FILE_UPLOAD_PERMISSIONS

  • Loading branch information...
commit d16ba46e408ab834b2402420e3b60bbcc8bc71d5 1 parent c0bd744
@lotheac lotheac authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/file_storage/tests.py
View
4 tests/regressiontests/file_storage/tests.py
@@ -445,11 +445,11 @@ def tearDown(self):
shutil.rmtree(self.storage_dir)
os.umask(self.old_umask)
- @override_settings(FILE_UPLOAD_PERMISSIONS=0o666)
+ @override_settings(FILE_UPLOAD_PERMISSIONS=0o654)
def test_file_upload_permissions(self):
name = self.storage.save("the_file", ContentFile("data"))
actual_mode = os.stat(self.storage.path(name))[0] & 0o777
- self.assertEqual(actual_mode, 0o666)
+ self.assertEqual(actual_mode, 0o654)
@override_settings(FILE_UPLOAD_PERMISSIONS=None)
def test_file_upload_default_permissions(self):
Please sign in to comment.
Something went wrong with that request. Please try again.