Explorar el Código

[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 hace 13 años
padre
commit
a581de0863
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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',
         'group_read', 'group_write', 'group_execute',
         'other_read', 'other_write', 'other_execute',
         'other_read', 'other_write', 'other_execute',
         'sticky') # Order matters!
         '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 = {'path': PATH}
     kwargs.update(permissions_dict)
     kwargs.update(permissions_dict)