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
a5cf5da5
Kaydet (Commit)
a5cf5da5
authored
Agu 21, 2013
tarafından
Ramiro Morales
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Switched mail tests to SimpleTestCase.
üst
ececbe77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
tests.py
tests/mail/tests.py
+7
-7
No files found.
tests/mail/tests.py
Dosyayı görüntüle @
a5cf5da5
...
...
@@ -18,7 +18,7 @@ from django.core.mail import (EmailMessage, mail_admins, mail_managers,
EmailMultiAlternatives
,
send_mail
,
send_mass_mail
)
from
django.core.mail.backends
import
console
,
dummy
,
locmem
,
filebased
,
smtp
from
django.core.mail.message
import
BadHeaderError
from
django.test
import
TestCase
from
django.test
import
Simple
TestCase
from
django.test.utils
import
override_settings
from
django.utils.encoding
import
force_str
,
force_text
from
django.utils.six
import
PY3
,
StringIO
,
string_types
...
...
@@ -46,7 +46,7 @@ class HeadersCheckMixin(object):
'the following headers:
%
s'
%
(
headers
-
msg_headers
),)
class
MailTests
(
HeadersCheckMixin
,
TestCase
):
class
MailTests
(
HeadersCheckMixin
,
Simple
TestCase
):
"""
Non-backend specific tests.
"""
...
...
@@ -403,7 +403,7 @@ class MailTests(HeadersCheckMixin, TestCase):
self
.
assertTrue
(
str
(
'Child Subject'
)
in
parent_s
)
class
PythonGlobalState
(
TestCase
):
class
PythonGlobalState
(
Simple
TestCase
):
"""
Tests for #12422 -- Django smarts (#2472/#11212) with charset of utf-8 text
parts shouldn't pollute global email Python package charset registry when
...
...
@@ -636,7 +636,7 @@ class BaseEmailBackendTests(HeadersCheckMixin, object):
self
.
fail
(
"close() unexpectedly raised an exception:
%
s"
%
e
)
class
LocmemBackendTests
(
BaseEmailBackendTests
,
TestCase
):
class
LocmemBackendTests
(
BaseEmailBackendTests
,
Simple
TestCase
):
email_backend
=
'django.core.mail.backends.locmem.EmailBackend'
def
get_mailbox_content
(
self
):
...
...
@@ -666,7 +666,7 @@ class LocmemBackendTests(BaseEmailBackendTests, TestCase):
send_mail
(
'Subject
\n
Multiline'
,
'Content'
,
'from@example.com'
,
[
'to@example.com'
])
class
FileBackendTests
(
BaseEmailBackendTests
,
TestCase
):
class
FileBackendTests
(
BaseEmailBackendTests
,
Simple
TestCase
):
email_backend
=
'django.core.mail.backends.filebased.EmailBackend'
def
setUp
(
self
):
...
...
@@ -723,7 +723,7 @@ class FileBackendTests(BaseEmailBackendTests, TestCase):
connection
.
close
()
class
ConsoleBackendTests
(
BaseEmailBackendTests
,
TestCase
):
class
ConsoleBackendTests
(
BaseEmailBackendTests
,
Simple
TestCase
):
email_backend
=
'django.core.mail.backends.console.EmailBackend'
def
setUp
(
self
):
...
...
@@ -826,7 +826,7 @@ class FakeSMTPServer(smtpd.SMTPServer, threading.Thread):
self
.
join
()
class
SMTPBackendTests
(
BaseEmailBackendTests
,
TestCase
):
class
SMTPBackendTests
(
BaseEmailBackendTests
,
Simple
TestCase
):
email_backend
=
'django.core.mail.backends.smtp.EmailBackend'
@classmethod
...
...
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