lundi 1 mai 2017

Repeat 4 same tests in Python

I need to repeat:

suite = unittest.TestLoader().loadTestsFromTestCase(EAStest)
suite = unittest.TestSuite()

# suite.addTest(EAStest("ArmDisarmPin"))
# suite.addTest(EAStest("ArmDisarmPin"))
# suite.addTest(EAStest("ArmDisarmPin"))
# suite.addTest(EAStest("ArmDisarmPin"))

I just want to optimize my cde, so it will look nicer. Thanks

Aucun commentaire:

Enregistrer un commentaire