FreedomBox/freedombox/modules/email/tests/test_functional.py
Sunil Mohan Adapa baa44e91a2
*: Update imports statements from plinth to freedombox
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-08-28 07:35:18 -04:00

27 lines
718 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for email app.
"""
import pytest
from freedombox.tests import functional
pytestmark = [pytest.mark.apps, pytest.mark.email]
class TestEmailApp(functional.BaseAppTests):
app_name = 'email'
has_service = True
has_web = False
check_diagnostics = True
@pytest.fixture(autouse=True)
def fixture_background(self, session_browser):
functional.login(session_browser)
functional.install(session_browser, self.app_name)
functional.app_enable(session_browser, self.app_name)
yield
functional.login(session_browser)
functional.app_disable(session_browser, self.app_name)