From 0440b7ba52a3de8b2a0c88bcc1aa0252319a619f Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 18 Sep 2021 18:53:13 -0400 Subject: [PATCH] tests: Show warning when app not available Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- 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 07d49003c..3daf57307 100644 --- a/plinth/tests/functional/__init__.py +++ b/plinth/tests/functional/__init__.py @@ -10,6 +10,7 @@ import pathlib import subprocess import tempfile import time +import warnings from contextlib import contextmanager import pytest @@ -345,6 +346,8 @@ def install(browser, app_name): browser.visit(browser.url) else: # This app is not available in this distribution + warnings.warn( + f'App {app_name} is not available in distribution') pytest.skip('App not available in distribution') else: install_button.click()