I have a python code file like below.I want to use the list created in fun1 as data input to the 2nd pytest marker. But when I am running this code. parametrize marker is not able to access this list. Thats why pytest is skipping this 2nd test. I made this list as global so that 2nd test func could access it.Looking for suggestions
@pytest.mark.parametrize("param1,param2",[(a,b),(c,d)])
def test_func1(parm1, param 2):
#creating a new list in this function
New_list
@pytest.mark.parametrize("param3,param4",New_list)
def test_func2(param3, param4) :