1"""
2Email test helpers.
3
4During a test run, `EMAIL_BACKEND` is routed to the in-memory backend and
5`outbox` collects every email sent. The outbox is cleared between tests.
6
7 from plain.email.testing import outbox
8
9 def test_signup_sends_welcome():
10 Client().post("/signup/", form_data={"email": "[email protected]"})
11 assert len(outbox) == 1
12 assert outbox[0].to == ["[email protected]"]
13"""
14
15from plain.email.backends.locmem import outbox
16
17__all__ = ["outbox"]