mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
tests: Drop step definitions
Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
9bad96c863
commit
38bbca76c6
2 files changed
-202
No files matched your search
-14
@@ -11,20 +11,6 @@ from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
try:
|
||||
importlib.import_module('pytest_bdd')
|
||||
_bdd_available = True
|
||||
except ImportError:
|
||||
_bdd_available = False
|
||||
else:
|
||||
from plinth.tests.functional.step_definitions import *
|
||||
|
||||
|
||||
def pytest_ignore_collect(path, config):
|
||||
"""Return True to ignore functional tests."""
|
||||
if path.basename == 'test_functional.py':
|
||||
return not _bdd_available
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
"""Add a command line option to run functional tests."""
|
||||
|
||||
Reference in new issue
Block a user