mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
email: Add basic functional tests
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
96c587c13c
commit
851644574d
27
plinth/modules/email/tests/test_functional.py
Normal file
27
plinth/modules/email/tests/test_functional.py
Normal file
@ -0,0 +1,27 @@
|
||||
# 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.set_advanced_mode(session_browser, True)
|
||||
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)
|
||||
@ -30,6 +30,7 @@ markers = [
|
||||
"domain",
|
||||
"dynamicdns",
|
||||
"ejabberd",
|
||||
"email",
|
||||
"gitweb",
|
||||
"help",
|
||||
"i2p",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user