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 authored and Sunil Mohan Adapa committed 2021-12-05 11:00:41 -08:00
1 parent 9f7e97c4ae
commit b12a07229c
5 files changed
+12 -5

No files matched your search

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