diff --git a/test/e2e/configs/_local.ci.py b/test/e2e/configs/_local.ci.py index 41a02a9511..cfc60448df 100644 --- a/test/e2e/configs/_local.ci.py +++ b/test/e2e/configs/_local.ci.py @@ -5,3 +5,4 @@ LOG_LEVEL = logging.getLevelName(os.getenv('LOG_LEVEL', 'INFO')) UPDATE_VP_ON_FAIL = False DEV_BUILD = False AUT_PATH = os.getenv('AUT_PATH') +os.environ['STATUS_RUNTIME_USE_MOCKED_KEYCARD'] = 'False' diff --git a/test/e2e/configs/_local.default.py b/test/e2e/configs/_local.default.py index 9ec058148b..c5d87fafa5 100644 --- a/test/e2e/configs/_local.default.py +++ b/test/e2e/configs/_local.default.py @@ -1,6 +1,8 @@ import logging +import os LOG_LEVEL = logging.DEBUG DEV_BUILD = False AUT_PATH = "path to the application (.app or .AppImage)" +os.environ['STATUS_RUNTIME_USE_MOCKED_KEYCARD'] = 'False' diff --git a/test/e2e/conftest.py b/test/e2e/conftest.py index 731579bbef..5eb5aa823e 100644 --- a/test/e2e/conftest.py +++ b/test/e2e/conftest.py @@ -44,7 +44,8 @@ def setup_function_scope( caplog, generate_test_data, check_result, - application_logs + application_logs, + keycard_controller ): # FIXME: broken due to KeyError: <_pytest.stash.StashKey object at 0x7fd1ba6d78c0> # caplog.set_level(configs.LOG_LEVEL) diff --git a/test/e2e/fixtures/aut.py b/test/e2e/fixtures/aut.py index 99d7f9336d..d6700d1055 100644 --- a/test/e2e/fixtures/aut.py +++ b/test/e2e/fixtures/aut.py @@ -1,4 +1,5 @@ import allure +import os import pytest import logging import configs @@ -18,6 +19,10 @@ def options(request): return request.param return '' +@pytest.fixture +def keycard_controller(request): + if 'settings_keycard' in str(getattr(request, 'fspath')): + os.environ['STATUS_RUNTIME_USE_MOCKED_KEYCARD'] = 'True' @pytest.fixture def application_logs():