mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
dynamicdns: Skip uninstall test
Tests: - test_uninstall is skipped for dynamicdns. - test_uninstall is passed for bepasty. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
7febdb16e3
commit
bb544b0a6d
@ -75,6 +75,7 @@ class TestDynamicDNSApp(functional.BaseAppTests):
|
|||||||
app_name = 'dynamicdns'
|
app_name = 'dynamicdns'
|
||||||
has_service = False
|
has_service = False
|
||||||
has_web = False
|
has_web = False
|
||||||
|
can_uninstall = False
|
||||||
check_diagnostics = False
|
check_diagnostics = False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@ -641,6 +641,7 @@ class BaseAppTests:
|
|||||||
# TODO: Check the components of the app instead of configuring here.
|
# TODO: Check the components of the app instead of configuring here.
|
||||||
has_service = False
|
has_service = False
|
||||||
has_web = True
|
has_web = True
|
||||||
|
can_uninstall = True
|
||||||
check_diagnostics = True
|
check_diagnostics = True
|
||||||
diagnostics_delay = 0
|
diagnostics_delay = 0
|
||||||
disable_after_tests = True
|
disable_after_tests = True
|
||||||
@ -706,6 +707,9 @@ class BaseAppTests:
|
|||||||
|
|
||||||
def test_uninstall(self, session_browser):
|
def test_uninstall(self, session_browser):
|
||||||
"""Test that app can be uninstalled and installed back again."""
|
"""Test that app can be uninstalled and installed back again."""
|
||||||
|
if not self.can_uninstall:
|
||||||
|
pytest.skip(f'Skipping uninstall test for {self.app_name}.')
|
||||||
|
|
||||||
uninstall(session_browser, self.app_name)
|
uninstall(session_browser, self.app_name)
|
||||||
assert not is_installed(session_browser, self.app_name)
|
assert not is_installed(session_browser, self.app_name)
|
||||||
install(session_browser, self.app_name)
|
install(session_browser, self.app_name)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user