mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
tests: functional: storage: skip test List disks
Skip the test Scenario: List disks when inside a container Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
1 parent
dabaf53994
commit
a02b0baad1
2 files changed
+13
-1
No files matched your search
@@ -2,6 +2,7 @@
|
||||
"""
|
||||
Functional, browser based tests for storage app.
|
||||
"""
|
||||
import pytest
|
||||
|
||||
from pytest_bdd import given, parsers, scenarios, then
|
||||
|
||||
@@ -17,7 +18,10 @@ def storage_root_disk_is_shown(session_browser):
|
||||
|
||||
@given(parsers.parse("I'm on the {name:w} page"))
|
||||
def go_to_module(session_browser, name):
|
||||
functional.nav_to_module(session_browser, name)
|
||||
if functional.running_inside_container:
|
||||
pytest.skip('Storage doesn\'t work inside a container')
|
||||
else:
|
||||
functional.nav_to_module(session_browser, name)
|
||||
|
||||
|
||||
def _is_root_disk_shown(browser):
|
||||
|
||||
Reference in new issue
Block a user