Browse Source

make attachments acl aware in test on py 3.5k

Rafał Pitoń 8 years ago
parent
commit
6826a45013
1 changed files with 1 additions and 3 deletions
  1. 1 3
      misago/threads/tests/test_threads_editor_api.py

+ 1 - 3
misago/threads/tests/test_threads_editor_api.py

@@ -652,9 +652,7 @@ class EditReplyEditorApiTests(EditorApiTestCase):
         })
         response = self.client.get(self.api_link)
 
-        map(lambda a: add_acl(self.user, a), attachments)
-
-        self.maxDiff = None
+        list(map(lambda a: add_acl(self.user, a), attachments))
 
         self.assertEqual(response.status_code, 200)
         self.assertEqual(json.loads(smart_str(response.content)), {