lundi 1 février 2016

Is it possible to skip a python unit test when a specified test did not pass

I'm wondering how should the check_step01 function be implemented.

class MyCase(unittest.TestCase):

  def test_step01(self):
    //do testing

  @unittest.skipIf(check_step01, "step01 not pass")
  def test_step02(self):
    //do testing

Aucun commentaire:

Enregistrer un commentaire