From: Trenton Holmes Date: Wed, 24 Aug 2022 15:27:43 +0000 (-0700) Subject: Finalizes testing of the delete comment X-Git-Tag: v1.9.0-beta.rc1~26^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67bb140eef7cee42a7d9b2ed96b909758cf552f6;p=thirdparty%2Fpaperless-ngx.git Finalizes testing of the delete comment --- diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.py index 774b8dde3f..4942751e46 100644 --- a/src/documents/tests/test_api.py +++ b/src/documents/tests/test_api.py @@ -1459,13 +1459,14 @@ class TestDocumentApi(DirectoriesMixin, APITestCase): ) response = self.client.delete( - f"/api/documents/{doc.pk}/comments/", - data={"id": f"{comment.pk}"}, + f"/api/documents/{doc.pk}/comments/?id={comment.pk}", format="json", ) self.assertEqual(response.status_code, 200) + self.assertEqual(len(Comment.objects.all()), 0) + def test_get_comments_no_doc(self): """ GIVEN: