mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
tests: Show warning when app not available
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
e31053eb92
commit
0440b7ba52
@ -10,6 +10,7 @@ import pathlib
|
|||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
|
import warnings
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -345,6 +346,8 @@ 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
|
||||||
|
warnings.warn(
|
||||||
|
f'App {app_name} is not available in distribution')
|
||||||
pytest.skip('App not available in distribution')
|
pytest.skip('App not available in distribution')
|
||||||
else:
|
else:
|
||||||
install_button.click()
|
install_button.click()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user