MCPcopy
hub / github.com/django/django / _pre_setup

Method _pre_setup

django/test/testcases.py:380–388  ·  view source on GitHub ↗

Perform pre-test setup: * Create a test client. * Clear the mail test outbox.

(cls)

Source from the content-addressed store, hash-verified

378
379 @classmethod
380 def _pre_setup(cls):
381 """
382 Perform pre-test setup:
383 * Create a test client.
384 * Clear the mail test outbox.
385 """
386 cls.client = cls.client_class()
387 cls.async_client = cls.async_client_class()
388 mail.outbox = []
389
390 def _post_teardown(self):
391 """Perform post-test things."""

Callers 3

_setup_and_callMethod · 0.95
setUpClassMethod · 0.45
_pre_setupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected