Browse Source

[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 năm trước cách đây
mục cha
commit
a581de0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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)