pytest uruchomione scenariusze w odpowiedniej kolejności w klasie

Mam więc następującą strukturę:

class Test(object):

   def test_1(self):
      pass

   def test_2(self):
      pass

   def test_3(self):
      pass

działa świetnie, TERAZ dodaję „scenariusze” (jak to jest zalecane wpytest - szybki port „testscenarios”):

def pytest_generate_tests(metafunc):
    idlist = []
    argvalues = []
    for scenario in metafunc.cls.scenarios:
        idlist.append(scenario[0])
        items = scenario[1].items()
        argnames = [x[0] for x in items]
        argvalues.append(([x[1] for x in items]))
    metafunc.parametrize(argnames, argvalues, ids=idlist)

class Test(object):
       scenarios = ['1' {'arg':'value1'},
                    '2' {'arg':'value2'}]

       def test_1(self, arg):
          pass

       def test_2(self, arg):
          pass

       def test_3(self, arg):
          pass

Kiedy go uruchomięKOLEJNOŚĆ testów jest błędna, Dostaję:

test_1[1]  
test_1[2]  
test_2[1]   
test_2[2]  
test_3[1]  
test_3[2]

Naprawdę nie wygląda jak scenariusz dla klasy Test.

PYTANIE: Czy jest jakieś rozwiązanie do uruchomienia go w odpowiedniej kolejności? lubić:

test_1[1]
test_2[1]
test_3[1]
test_1[2]
test_2[2]
test_3[2]

questionAnswers(2)

yourAnswerToTheQuestion