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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2024-07-26 13:39:38 -07:00 committed by James Valleroy
parent ef4292d5fc
commit 66533a1af5
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

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