mirror of
				https://github.com/Telecominfraproject/wlan-testing.git
				synced 2025-11-04 04:48:01 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			772 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			772 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import allure
 | 
						|
import pytest
 | 
						|
import logging
 | 
						|
 | 
						|
@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)
 | 
						|
    logging.info("dut_data after config applied: " + str(data))
 | 
						|
    yield data
 |