Переглянути джерело

[fb] Sticky bit testing.

The sticky bit commit was not backwards compatible.
The permissions array to be sent as 'post' data was using conditions in list comprehension.
The conditions were removed.
abec 13 роки тому
батько
коміт
a581de0863
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      apps/filebrowser/src/filebrowser/views_test.py

+ 2 - 2
apps/filebrowser/src/filebrowser/views_test.py

@@ -90,8 +90,8 @@ def test_chmod_sticky():
         'group_read', 'group_write', 'group_execute',
         'other_read', 'other_write', 'other_execute',
         'sticky') # Order matters!
-    permissions_dict = dict(filter(lambda x: x[1], zip(permissions, map(lambda x: 'on' if x else '', mode))))
-    permissions_dict['sticky'] = 'on'
+    permissions_dict = dict(filter(lambda x: x[1], zip(permissions, mode)))
+    permissions_dict['sticky'] = True
     kwargs = {'path': PATH}
     kwargs.update(permissions_dict)