dimanche 16 septembre 2018

Django initialize data test for all test classes

I need to add test to my django project, I need to create data test before execute tests. I read about setUp test data in this question. I can create data in setUpClass for all test in a class. Creating my complete data test is time consuming approach so I want to run it once for all of test classes, is any approach to set up data for all test classes once?

Aucun commentaire:

Enregistrer un commentaire