mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
functional-tests: Skip tests if app is not available in distribution
Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
f97902615b
commit
0c59dbb0e4
@ -11,6 +11,7 @@ import tempfile
|
||||
import time
|
||||
from contextlib import contextmanager
|
||||
|
||||
import pytest
|
||||
import requests
|
||||
from selenium.common.exceptions import (WebDriverException,
|
||||
StaleElementReferenceException)
|
||||
@ -305,7 +306,7 @@ def install(browser, app_name):
|
||||
browser.visit(browser.url)
|
||||
else:
|
||||
# This app is not available in this distribution
|
||||
raise Exception('App not available in distribution')
|
||||
pytest.skip('App not available in distribution')
|
||||
else:
|
||||
install_button.click()
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user