From 6bcb567ebfd205e7461f7bc7cbc4dcf38c837135 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 2 Jun 2021 17:06:53 +0200 Subject: [PATCH] Reset expected months back for SMM ViewSet SMM - SiteMonthlyMetrics. This one is a bit weird and I need to dig into it, I think. Tests started to fail because only 6 months back was returned for the SiteMontlyMetricsViewSet list returned. Now it is returning 7 months again, as it did before --- tests/views/test_site_monthly_metrics_viewset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/views/test_site_monthly_metrics_viewset.py b/tests/views/test_site_monthly_metrics_viewset.py index fa218e77..a1eb287f 100644 --- a/tests/views/test_site_monthly_metrics_viewset.py +++ b/tests/views/test_site_monthly_metrics_viewset.py @@ -92,7 +92,7 @@ def setup(self, db, settings): if organizations_support_sites(): settings.FEATURES['FIGURES_IS_MULTISITE'] = True super(TestSiteMonthlyMetricsViewSet, self).setup(db) - self.months_back = 6 + self.months_back = 7 def check_response(self, response, endpoint): assert response.status_code == status.HTTP_200_OK