Пример #1
0
 def setUp(self):
     report = reports_django.BasicDatabaseReport(CACHE)
     report.kill_cache(full=True)
     report = reports_basic.SuperBasicReport(CACHE)
     report.kill_cache(full=True)
     self.mock_runner = Mock()
     self.mock_cache = mock_cache()
     self.mock_cache.instance_rows.return_value = []
     self.mock_cache.instance_footer.return_value = {'id': None}
     self.mock_cache.instance_row_count.return_value = 0
Пример #2
0
 def setUp(self):
     self.report = reports_basic.SuperBasicReport(mock_cache())
Пример #3
0
 def setUp(self):
     self.report = reports_basic.SuperBasicReport(mock_cache())
Пример #4
0
 def setUp(self):
     self.mock_cache = mock_cache()
     self.report = reports_django.BasicDatabaseReport(self.mock_cache)
Пример #5
0
 def setUp(self):
     support_django.init_db_from_scratch()
     support_django.add_first_db_function()
     self.report = reports_django.BasicDatabaseReport(support_base.mock_cache())
Пример #6
0
 def setUp(self):
     self.report = reports_django.BasicDatabaseReport(mock_cache())