Remove mock

Can't import model until the test body
This commit is contained in:
Martin Whitehouse 2022-06-20 16:58:43 +02:00
parent 2910664950
commit 93bb43bf1d
No known key found for this signature in database
GPG Key ID: 8492A7A45769CD35

View File

@ -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 """