From be75c1e1543cb2fbb028b1406c83cbc5766bc6be Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Fri, 1 Dec 2017 18:41:16 +0100 Subject: [PATCH] statistic moths were checked for invalid year --- smash/web/tests/test_statistics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/web/tests/test_statistics.py b/smash/web/tests/test_statistics.py index 92e19cf5..af585909 100644 --- a/smash/web/tests/test_statistics.py +++ b/smash/web/tests/test_statistics.py @@ -40,7 +40,7 @@ class TestStatistics(TestCase): 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): -- GitLab