From 93bb43bf1dfa8b31a5aeddb030fb44245acc57db Mon Sep 17 00:00:00 2001 From: Martin Whitehouse Date: Mon, 20 Jun 2022 16:58:43 +0200 Subject: [PATCH] Remove mock Can't import model until the test body --- helpdesk/tests/test_attachments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/tests/test_attachments.py b/helpdesk/tests/test_attachments.py index 51b64318..d7bd2c5b 100644 --- a/helpdesk/tests/test_attachments.py +++ b/helpdesk/tests/test_attachments.py @@ -147,7 +147,7 @@ class AttachmentUnitTests(TestCase): self.assertEqual(obj.size, len(self.file_attrs['content'])) self.assertEqual(obj.mime_type, "text/plain") - @mock.patch.object('helpdesk.lib.FollowUpAttachment', 'save', autospec=True) + # @mock.patch.object('helpdesk.lib.FollowUpAttachment', 'save', autospec=True) @override_settings(MEDIA_ROOT=MEDIA_DIR) def test_unicode_filename_to_filesystem(self, mock_att_save, mock_queue_save, mock_ticket_save, mock_follow_up_save): """ don't mock saving to filesystem to test file renames caused by storage layer """