diff --git a/tests/views/test_reports.py b/tests/views/test_reports.py index 8f0de1b..6fe8fd4 100644 --- a/tests/views/test_reports.py +++ b/tests/views/test_reports.py @@ -51,8 +51,13 @@ class TestReportViews(WebTestCase): def test_get_grid_data(self): view = self.make_view() - data = view.get_grid_data() - self.assertIsInstance(data, list) + providers = dict(self.app.providers) + providers['wuttatest'] = MagicMock(report_modules=['tests.views.test_reports']) + with patch.object(self.app, 'providers', new=providers): + + data = view.get_grid_data() + self.assertIsInstance(data, list) + self.assertTrue(data) # 1+ reports def test_normalize_report(self): view = self.make_view()