chore: keycard env set separately for keycard tests only
This commit is contained in:
parent
d814ec12ef
commit
2a4e341f9d
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue