From 860a30486c2fda7656c5cf648871730f37f05ede Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Tue, 17 Dec 2019 22:38:03 -0500 Subject: [PATCH] Comments pass PEP-8 --- helpdesk/tests/test_attachments.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/helpdesk/tests/test_attachments.py b/helpdesk/tests/test_attachments.py index 3e2dd429..0b029d73 100644 --- a/helpdesk/tests/test_attachments.py +++ b/helpdesk/tests/test_attachments.py @@ -110,18 +110,18 @@ class AttachmentUnitTests(TestCase): self.assertEqual(filename, self.file_attrs['filename']) # TODO: FIXME: what's wrong with this test that we get integrity errors? - #@mock.patch('helpdesk.lib.FollowUpAttachment', autospec=True) - #def test_autofill(self, mock_att_save, mock_queue_save, mock_ticket_save, mock_follow_up_save): - # """ check utf-8 data is parsed correctly """ - # self.follow_up.pk = 100 - # self.follow_up.save() - # obj = models.FollowUpAttachment.objects.create( - # followup=self.follow_up, - # file=self.test_file - # ) - # self.assertEqual(obj.filename, self.file_attrs['filename']) - # self.assertEqual(obj.size, len(self.file_attrs['content'])) - # self.assertEqual(obj.mime_type, "text/plain") + # @mock.patch('helpdesk.lib.FollowUpAttachment', autospec=True) + # def test_autofill(self, mock_att_save, mock_queue_save, mock_ticket_save, mock_follow_up_save): + # """ check utf-8 data is parsed correctly """ + # self.follow_up.pk = 100 + # self.follow_up.save() + # obj = models.FollowUpAttachment.objects.create( + # followup=self.follow_up, + # file=self.test_file + # ) + # self.assertEqual(obj.filename, self.file_attrs['filename']) + # self.assertEqual(obj.size, len(self.file_attrs['content'])) + # self.assertEqual(obj.mime_type, "text/plain") def test_kbi_attachment(self, mock_att_save, mock_queue_save, mock_ticket_save): """ check utf-8 data is parsed correctly """