diff --git a/smash/web/tests/test_statistics.py b/smash/web/tests/test_statistics.py index 92e19cf5a8dbfe588ae20a1a311197617e392c2c..3c36dcf7fdbd483492f8adacaa51c6e3bbd3e22b 100644 --- a/smash/web/tests/test_statistics.py +++ b/smash/web/tests/test_statistics.py @@ -34,13 +34,13 @@ class TestStatistics(TestCase): self.assertEqual(12, previous_month) def test_get_statistics_for_month_one_appointment(self): - statistics = self.statistics_manager.get_statistics_for_month(self.visit_start.month, self.now.year) + statistics = self.statistics_manager.get_statistics_for_month(self.visit_start.month, self.visit_start.year) self.check_statistics(statistics, 1, 0, 0, {"C": [0, 0]}, ['Scheduled']) statistics = self.statistics_manager.get_statistics_for_month(self.now.month, self.now.year) self.check_statistics(statistics, 0, 0, 1, {"C": [1, 1]}, ['Scheduled']) - statistics = self.statistics_manager.get_statistics_for_month(self.visit_end.month, self.now.year) + statistics = self.statistics_manager.get_statistics_for_month(self.visit_end.month, self.visit_end.year) self.check_statistics(statistics, 0, 1, 0, {"C": [0, 0]}, ['Scheduled']) def test_get_statistics_for_month_one_appointment_visit(self):