소스 검색

[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 년 전
부모
커밋
a581de0
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)