From 31925252cb7aa34103d3499b74008dea34c8ff2e Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 17 Mar 2026 12:11:55 -0700 Subject: [PATCH] tests: functional: Drop undefined 'sso' pytest mark Remove the following warnings when running functional tests. plinth/modules/calibre/tests/test_functional.py:13: PytestUnknownMarkWarning: Unknown pytest.mark.sso - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html pytestmark = [pytest.mark.apps, pytest.mark.sso, pytest.mark.calibre] plinth/modules/kiwix/tests/test_functional.py:15: PytestUnknownMarkWarning: Unknown pytest.mark.sso - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html pytestmark = [pytest.mark.apps, pytest.mark.sso, pytest.mark.kiwix] plinth/modules/searx/tests/test_functional.py:9: PytestUnknownMarkWarning: Unknown pytest.mark.sso - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html pytestmark = [pytest.mark.apps, pytest.mark.searx, pytest.mark.sso] plinth/modules/syncthing/tests/test_functional.py:11: PytestUnknownMarkWarning: Unknown pytest.mark.sso - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html pytestmark = [pytest.mark.apps, pytest.mark.syncthing, pytest.mark.sso] plinth/modules/transmission/tests/test_functional.py:13: PytestUnknownMarkWarning: Unknown pytest.mark.sso - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html pytestmark = [pytest.mark.apps, pytest.mark.transmission, pytest.mark.sso] Signed-off-by: Sunil Mohan Adapa --- plinth/modules/calibre/tests/test_functional.py | 2 +- plinth/modules/kiwix/tests/test_functional.py | 2 +- plinth/modules/searx/tests/test_functional.py | 3 ++- plinth/modules/syncthing/tests/test_functional.py | 3 ++- plinth/modules/transmission/tests/test_functional.py | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/plinth/modules/calibre/tests/test_functional.py b/plinth/modules/calibre/tests/test_functional.py index 6e52d026a..0c8237eb6 100644 --- a/plinth/modules/calibre/tests/test_functional.py +++ b/plinth/modules/calibre/tests/test_functional.py @@ -10,7 +10,7 @@ import pytest from plinth.tests import functional -pytestmark = [pytest.mark.apps, pytest.mark.sso, pytest.mark.calibre] +pytestmark = [pytest.mark.apps, pytest.mark.calibre] class TestCalibreApp(functional.BaseAppTests): diff --git a/plinth/modules/kiwix/tests/test_functional.py b/plinth/modules/kiwix/tests/test_functional.py index 5912c4622..938887944 100644 --- a/plinth/modules/kiwix/tests/test_functional.py +++ b/plinth/modules/kiwix/tests/test_functional.py @@ -12,7 +12,7 @@ from plinth.tests import functional from .test_privileged import ZIM_ID -pytestmark = [pytest.mark.apps, pytest.mark.sso, pytest.mark.kiwix] +pytestmark = [pytest.mark.apps, pytest.mark.kiwix] _default_url = functional.config['DEFAULT']['url'] diff --git a/plinth/modules/searx/tests/test_functional.py b/plinth/modules/searx/tests/test_functional.py index 74f952c91..3fb5a3235 100644 --- a/plinth/modules/searx/tests/test_functional.py +++ b/plinth/modules/searx/tests/test_functional.py @@ -4,9 +4,10 @@ Functional, browser based tests for searx app. """ import pytest + from plinth.tests import functional -pytestmark = [pytest.mark.apps, pytest.mark.searx, pytest.mark.sso] +pytestmark = [pytest.mark.apps, pytest.mark.searx] @pytest.fixture(scope='module', autouse=True) diff --git a/plinth/modules/syncthing/tests/test_functional.py b/plinth/modules/syncthing/tests/test_functional.py index 8d1804089..561638245 100644 --- a/plinth/modules/syncthing/tests/test_functional.py +++ b/plinth/modules/syncthing/tests/test_functional.py @@ -6,9 +6,10 @@ Functional, browser based tests for syncthing app. import time import pytest + from plinth.tests import functional -pytestmark = [pytest.mark.apps, pytest.mark.syncthing, pytest.mark.sso] +pytestmark = [pytest.mark.apps, pytest.mark.syncthing] class TestSyncthingApp(functional.BaseAppTests): diff --git a/plinth/modules/transmission/tests/test_functional.py b/plinth/modules/transmission/tests/test_functional.py index 33773f493..6ef88f7ae 100644 --- a/plinth/modules/transmission/tests/test_functional.py +++ b/plinth/modules/transmission/tests/test_functional.py @@ -10,7 +10,7 @@ from splinter.exceptions import ElementDoesNotExist from plinth.tests import functional -pytestmark = [pytest.mark.apps, pytest.mark.transmission, pytest.mark.sso] +pytestmark = [pytest.mark.apps, pytest.mark.transmission] class TestTransmissionApp(functional.BaseAppTests):