mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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'
|
||||
has_service = False
|
||||
has_web = False
|
||||
can_uninstall = False
|
||||
check_diagnostics = False
|
||||
|
||||
@staticmethod
|
||||
|
||||
@ -641,6 +641,7 @@ class BaseAppTests:
|
||||
# TODO: Check the components of the app instead of configuring here.
|
||||
has_service = False
|
||||
has_web = True
|
||||
can_uninstall = True
|
||||
check_diagnostics = True
|
||||
diagnostics_delay = 0
|
||||
disable_after_tests = True
|
||||
@ -706,6 +707,9 @@ class BaseAppTests:
|
||||
|
||||
def test_uninstall(self, session_browser):
|
||||
"""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)
|
||||
assert not is_installed(session_browser, self.app_name)
|
||||
install(session_browser, self.app_name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user