mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-25 16:18:51 +01:00
Revert previous change
This commit is contained in:
parent
884662dd21
commit
d7875587b7
@ -36,7 +36,7 @@ class GetEmailTestCase(TestCase):
|
||||
|
||||
# tests reading emails from a queue and creating tickets
|
||||
def test_read_email(self):
|
||||
test_email = six.b("To: update.public@example.com\nFrom: comment@example.com\nSubject: Some Comment\n\nThis is the helpdesk comment via email.")
|
||||
test_email = "To: update.public@example.com\nFrom: comment@example.com\nSubject: Some Comment\n\nThis is the helpdesk comment via email."
|
||||
with mock.patch('helpdesk.management.commands.get_email.listdir') as mocked_listdir, \
|
||||
mock.patch('helpdesk.management.commands.get_email.isfile') as mocked_isfile, \
|
||||
mock.patch('builtins.open' if six.PY3 else '__builtin__.open', mock.mock_open(read_data=test_email)):
|
||||
|
Loading…
Reference in New Issue
Block a user