Rafał Pitoń 8 лет назад
Родитель
Сommit
14e1982401

+ 6 - 2
misago/threads/tests/test_thread_patch_api.py

@@ -211,7 +211,9 @@ class ThreadMoveApiTests(ThreadsApiTestCase):
         self.override_acl({
             'can_move_threads': True
         })
-        self.override_other_acl({})
+        self.override_other_acl({
+            'can_start_threads': 2
+        })
 
         response = self.client.patch(self.api_link, json.dumps([
             {'op': 'replace', 'path': 'category', 'value': self.category_b.pk},
@@ -235,7 +237,9 @@ class ThreadMoveApiTests(ThreadsApiTestCase):
         self.override_acl({
             'can_move_threads': True
         })
-        self.override_other_acl({})
+        self.override_other_acl({
+            'can_start_threads': 2
+        })
 
         response = self.client.patch(self.api_link, json.dumps([
             {'op': 'replace', 'path': 'category', 'value': self.category_b.pk},

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

@@ -8,9 +8,9 @@ from misago.categories.models import Category
 from misago.users.testutils import AuthenticatedUserTestCase
 
 
-class ThreadsApiTestCase(AuthenticatedUserTestCase):
+class ThreadsEditorApiTestCase(AuthenticatedUserTestCase):
     def setUp(self):
-        super(ThreadsApiTestCase, self).setUp()
+        super(ThreadsEditorApiTestCase, self).setUp()
 
         self.category = Category.objects.get(slug='first-category')
         self.api_link = reverse('misago:api:thread-editor')