mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(testing.email): add Email.dump
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
60b098a2f2
commit
85e6ad03db
3 changed files with 110 additions and 4 deletions
|
@ -217,3 +217,15 @@ def db_test(db_session: scoped_session) -> None:
|
|||
@pytest.fixture
|
||||
def git(tmpdir: py.path.local) -> GitRepository:
|
||||
yield GitRepository(tmpdir)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def email_test() -> None:
|
||||
"""
|
||||
A decoupled test email setup fixture.
|
||||
|
||||
When using the `db_test` fixture, this fixture is redundant. Otherwise,
|
||||
email tests need to run through our `setup_email` function to ensure
|
||||
that we set them up to be used via aurweb.testing.email.Email.
|
||||
"""
|
||||
setup_email()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue