mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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
|
import time
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
|
import pytest
|
||||||
import requests
|
import requests
|
||||||
from selenium.common.exceptions import (WebDriverException,
|
from selenium.common.exceptions import (WebDriverException,
|
||||||
StaleElementReferenceException)
|
StaleElementReferenceException)
|
||||||
@ -305,7 +306,7 @@ def install(browser, app_name):
|
|||||||
browser.visit(browser.url)
|
browser.visit(browser.url)
|
||||||
else:
|
else:
|
||||||
# This app is not available in this distribution
|
# This app is not available in this distribution
|
||||||
raise Exception('App not available in distribution')
|
pytest.skip('App not available in distribution')
|
||||||
else:
|
else:
|
||||||
install_button.click()
|
install_button.click()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user