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:
James Valleroy 2021-12-05 09:31:51 -05:00 committed by Sunil Mohan Adapa
parent 9f7e97c4ae
commit b12a07229c
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
5 changed files with 12 additions and 5 deletions

View File

@ -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):

View File

@ -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)

View File

@ -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
]

View File

@ -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

View File

@ -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):