Browse Source

Added fixme comments for some weirdness spotted

Rafał Pitoń 7 years ago
parent
commit
570002a9c5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      misago/threads/tests/test_thread_postmove_api.py

+ 2 - 0
misago/threads/tests/test_thread_postmove_api.py

@@ -426,6 +426,7 @@ class ThreadPostMoveApiTestCase(AuthenticatedUserTestCase):
             }),
             content_type="application/json",
         )
+        # fixme: this is bad place to return message that thread is closed
         self.assertEqual(response.status_code, 400)
         self.assertEqual(response.json(), {
             'posts': ["This thread is closed. You can't move posts in it."],
@@ -449,6 +450,7 @@ class ThreadPostMoveApiTestCase(AuthenticatedUserTestCase):
             }),
             content_type="application/json",
         )
+        # fixme: this is bad place to return message that category is closed
         self.assertEqual(response.status_code, 400)
         self.assertEqual(response.json(), {
             'posts': ["This category is closed. You can't move posts in it."],