Skip to content

Commit 816f5f5

Browse files
author
Rich Leland
committed
Remove test using binary file
1 parent c05f032 commit 816f5f5

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

test/django/test_message.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
from django.core.mail import EmailMultiAlternatives
42
from django.core.mail.message import EmailMessage
53

@@ -64,27 +62,17 @@ def test_attachment():
6462
email_message = EmailMessage(**base_options)
6563
email_message.attach('file.txt', 'test content', 'text/plain')
6664

67-
current_dir = os.path.dirname(os.path.abspath(__file__))
68-
test_file = os.path.join(current_dir, 'testfile.txt')
69-
email_message.attach_file(test_file)
70-
7165
actual = SparkPostMessage(email_message)
7266
expected = dict(
7367
attachments=[
7468
{
7569
'name': 'file.txt',
7670
'data': 'test content',
7771
'type': 'text/plain'
78-
},
79-
{
80-
'name': 'testfile.txt',
81-
'data': 'hello there!\n',
82-
'type': 'text/plain'
8372
}
8473
]
8574
)
8675
expected.update(base_expected)
87-
8876
assert actual == expected
8977

9078
if at_least_version('1.8'):

test/django/testfile.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)