FreedomBox/plinth/modules/email/tests/test_functional.py
Sunil Mohan Adapa 086b805c2b
email: Make app available for all users (even without advanced flag)
- Discussed during progress call.

- More testing has happened on the app since making it available.

- Will document difficulties with setting up domain name and ISP outgoing
traffic on port 25.

Tests:

- App is available without the advance flag.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2022-06-06 20:55:06 -04:00

27 lines
714 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Functional, browser based tests for email app.
"""
import pytest
from plinth.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)