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:
James Valleroy 2023-02-12 14:28:43 -05:00 committed by Sunil Mohan Adapa
parent 7febdb16e3
commit bb544b0a6d
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,7 @@ class TestDynamicDNSApp(functional.BaseAppTests):
app_name = 'dynamicdns'
has_service = False
has_web = False
can_uninstall = False
check_diagnostics = False
@staticmethod

View File

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