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
def setUp(self): self.report = reports_basic.SuperBasicReport(mock_cache())
def setUp(self): self.mock_cache = mock_cache() self.report = reports_django.BasicDatabaseReport(self.mock_cache)
def setUp(self): support_django.init_db_from_scratch() support_django.add_first_db_function() self.report = reports_django.BasicDatabaseReport(support_base.mock_cache())
def setUp(self): self.report = reports_django.BasicDatabaseReport(mock_cache())