From d23ceb70500b48d7b28f8680cd723d6990a0e2dc Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Fri, 8 Mar 2024 16:38:19 -0800 Subject: [PATCH] tests: functional: Uninstall app after backup and before restore Closes: #2353. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/tests/functional/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plinth/tests/functional/__init__.py b/plinth/tests/functional/__init__.py index 2f86dae3a..b5f232a86 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -715,6 +715,9 @@ class BaseAppTests: def test_backup_restore(self, session_browser): """Test that backup and restore operations work on the app.""" backup_create(session_browser, self.app_name, 'test_' + self.app_name) + if self.can_uninstall: + uninstall(session_browser, self.app_name) + backup_restore(session_browser, self.app_name, 'test_' + self.app_name) self.assert_app_running(session_browser)