Ejemplo n.º 1
0
 def setUpClass(cls):
     super(CountersTest, cls).setUpClass()
     matches_count = MatchingFileLine.objects.all().count()
     if matches_count == 0:
         logger.warn("No match data, loading and processing")
         test_utils.load_test_data()
         test_utils.process_test_data()
Ejemplo n.º 2
0
 def setUp(self):
     result_set_count = ResultSet.objects.all().count()
     if result_set_count > 0:
         return
     test_utils.create_test_data()
     test_utils.load_test_data()