mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
ef4292d5fc
commit
66533a1af5
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user