From 66533a1af53a1a064b9eb9dfb7279ca2e5e97f04 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 26 Jul 2024 13:39:38 -0700 Subject: [PATCH] tests: functional: Name the background fixture For test cases implemented in derived classes, autouse=True does not seem to work. These test cases can explicitly request this fixture with the name. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/functional/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index cf3d8d726..76b1e8bf8 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -698,7 +698,7 @@ class BaseAppTests: """Install the app and set it up if needed.""" install(session_browser, self.app_name) - @pytest.fixture(autouse=True) + @pytest.fixture(autouse=True, name='background') def fixture_background(self, session_browser): """Login, install, and enable the app.""" login(session_browser)