Browse Source

small cleanup

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

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

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