Changeset View
Changeset View
Standalone View
Standalone View
comments/tests/test_comments_api.py
| Context not available. | |||||
| ) | ) | ||||
| self.client.force_login(self.user) | self.client.force_login(self.user) | ||||
| def tearDown(self): | |||||
| # Restore logging configuration | |||||
| logging.disable(logging.NOTSET) | |||||
| def test_user_can_soft_delete_own_comment_without_replies(self): | def test_user_can_soft_delete_own_comment_without_replies(self): | ||||
| comment_pk = self.comment_without_replies.pk | comment_pk = self.comment_without_replies.pk | ||||
| self.assertFalse(self.comment_without_replies.is_deleted) | self.assertFalse(self.comment_without_replies.is_deleted) | ||||
| Context not available. | |||||
| self.client.force_login(self.user) | self.client.force_login(self.user) | ||||
| def tearDown(self): | |||||
| # Restore logging configuration | |||||
| logging.disable(logging.NOTSET) | |||||
| def test_user_cannot_soft_delete_comments_tree(self): | def test_user_cannot_soft_delete_comments_tree(self): | ||||
| response = self.client.post(self.soft_delete_url) | response = self.client.post(self.soft_delete_url) | ||||
| Context not available. | |||||