Files
wlan-testing/tests/e2e/basic/conftest.py
shivam 06dfc1d944 Added run_lf option
Signed-off-by: shivam <shivam.thakur@candelatech.com>
2022-09-06 22:33:58 +05:30

22 lines
681 B
Python

import pytest
@pytest.fixture(scope="class")
def setup_configuration(request, get_markers, get_target_object, run_lf):
# Predefined selected markers and selected configuration
conf = dict(request.param)
configuration = conf.copy()
requested_combination = []
for key in get_markers:
if get_markers[key]:
requested_combination.append(get_markers[key])
# Method to setup the basic configuration
data = {}
if not run_lf:
data = get_target_object.setup_basic_configuration(configuration=configuration,
requested_combination=requested_combination)
yield data