mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
tests: functional: Don't try disable app after tests if app was not installed
Fixes an issue where app tests teardown fails if app installation fails or app is not available for distribution. Tests: - On Debian Bookworm, all miniflux functional tests are skipped and there are no errors. - After running gitweb metadata functional test, the app is disabled. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
f2fad4f1cf
commit
b3f82974f0
@ -763,7 +763,8 @@ class BaseAppTests:
|
||||
def fixture_disable_after_tests(self, session_browser):
|
||||
"""Disable the app after running tests."""
|
||||
yield
|
||||
if self.disable_after_tests:
|
||||
if self.disable_after_tests and is_installed(session_browser,
|
||||
self.app_name):
|
||||
app_disable(session_browser, self.app_name)
|
||||
|
||||
@pytest.fixture(autouse=True, name='background')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user