MCPcopy
hub / github.com/django/django / setUpClass

Method setUpClass

tests/mail/test_backends.py:1132–1141  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

1130class SMTPBackendStoppedServerTests(SMTPBackendTestsBase):
1131 @classmethod
1132 def setUpClass(cls):
1133 super().setUpClass()
1134 # RemovedInDjango70Warning: alias argument can be removed (needed
1135 # during mail.mailers transition to prevent compatibility mode).
1136 cls.backend = smtp.EmailBackend(
1137 alias="test_alias",
1138 host=cls.smtp_controller.hostname,
1139 port=cls.smtp_controller.port,
1140 )
1141 cls.smtp_controller.stop()
1142
1143 @classmethod
1144 def stop_smtp(cls):

Callers

nothing calls this directly

Calls 2

setUpClassMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected