Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
ec594942
Kaydet (Commit)
ec594942
authored
Agu 04, 2018
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unnecessary str() in mail tests.
Unnecessary since their introduction in
fa75b2cb
.
üst
ec9d0123
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests.py
tests/mail/tests.py
+2
-2
No files found.
tests/mail/tests.py
Dosyayı görüntüle @
ec594942
...
...
@@ -1144,7 +1144,7 @@ class ConsoleBackendTests(BaseEmailBackendTests, SimpleTestCase):
def
get_mailbox_content
(
self
):
messages
=
self
.
stream
.
getvalue
()
.
split
(
'
\n
'
+
(
'-'
*
79
)
+
'
\n
'
)
return
[
message_from_bytes
(
str
(
m
)
.
encode
())
for
m
in
messages
if
m
]
return
[
message_from_bytes
(
m
.
encode
())
for
m
in
messages
if
m
]
def
test_console_stream_kwarg
(
self
):
"""
...
...
@@ -1153,7 +1153,7 @@ class ConsoleBackendTests(BaseEmailBackendTests, SimpleTestCase):
s
=
StringIO
()
connection
=
mail
.
get_connection
(
'django.core.mail.backends.console.EmailBackend'
,
stream
=
s
)
send_mail
(
'Subject'
,
'Content'
,
'from@example.com'
,
[
'to@example.com'
],
connection
=
connection
)
message
=
s
tr
(
s
.
getvalue
()
.
split
(
'
\n
'
+
(
'-'
*
79
)
+
'
\n
'
)[
0
])
.
encode
()
message
=
s
.
getvalue
()
.
split
(
'
\n
'
+
(
'-'
*
79
)
+
'
\n
'
)[
0
]
.
encode
()
self
.
assertMessageHasHeaders
(
message
,
{
(
'MIME-Version'
,
'1.0'
),
(
'Content-Type'
,
'text/plain; charset="utf-8"'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment