mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
tests: Add 'domain' mark for apps that add/remove domains
Test: - "py.test-3 --include-functional -m domain" tests the marked apps. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
9f7e97c4ae
commit
b12a07229c
@ -7,7 +7,10 @@ import pytest
|
||||
|
||||
from plinth.tests.functional import BaseAppTests
|
||||
|
||||
pytestmark = [pytest.mark.system, pytest.mark.essential, pytest.mark.avahi]
|
||||
pytestmark = [
|
||||
pytest.mark.system, pytest.mark.essential, pytest.mark.domain,
|
||||
pytest.mark.avahi
|
||||
]
|
||||
|
||||
|
||||
class TestAvahiApp(BaseAppTests):
|
||||
|
||||
@ -6,7 +6,10 @@ Functional, browser based tests for config app.
|
||||
import pytest
|
||||
from plinth.tests import functional
|
||||
|
||||
pytestmark = [pytest.mark.system, pytest.mark.essential, pytest.mark.config]
|
||||
pytestmark = [
|
||||
pytest.mark.system, pytest.mark.essential, pytest.mark.domain,
|
||||
pytest.mark.config
|
||||
]
|
||||
|
||||
|
||||
@pytest.fixture(scope='module', autouse=True)
|
||||
|
||||
@ -10,7 +10,8 @@ import pytest
|
||||
from plinth.tests import functional
|
||||
|
||||
pytestmark = [
|
||||
pytest.mark.system, pytest.mark.essential, pytest.mark.dynamicdns
|
||||
pytest.mark.system, pytest.mark.essential, pytest.mark.domain,
|
||||
pytest.mark.dynamicdns
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ Functional, browser based tests for pagekite app.
|
||||
import pytest
|
||||
from plinth.tests import functional
|
||||
|
||||
pytestmark = [pytest.mark.system, pytest.mark.pagekite]
|
||||
pytestmark = [pytest.mark.system, pytest.mark.domain, pytest.mark.pagekite]
|
||||
|
||||
# TODO Scenario: Enable standard services
|
||||
# TODO Scenario: Disable standard services
|
||||
|
||||
@ -14,7 +14,7 @@ _TOR_FEATURE_TO_ELEMENT = {
|
||||
'software': 'tor-apt_transport_tor_enabled'
|
||||
}
|
||||
|
||||
pytestmark = [pytest.mark.apps, pytest.mark.tor]
|
||||
pytestmark = [pytest.mark.apps, pytest.mark.domain, pytest.mark.tor]
|
||||
|
||||
|
||||
class TestTorApp(functional.BaseAppTests):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user