Skip to content
Snippets Groups Projects
Commit 3876fca6 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

dates in unit test fixed

parent 5ef505d0
No related branches found
No related tags found
2 merge requests!127v0.10.2 into master,!126security issue solved using external middleware
...@@ -34,13 +34,13 @@ class TestStatistics(TestCase): ...@@ -34,13 +34,13 @@ class TestStatistics(TestCase):
self.assertEqual(12, previous_month) self.assertEqual(12, previous_month)
def test_get_statistics_for_month_one_appointment(self): 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']) 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) 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']) 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']) self.check_statistics(statistics, 0, 1, 0, {"C": [0, 0]}, ['Scheduled'])
def test_get_statistics_for_month_one_appointment_visit(self): def test_get_statistics_for_month_one_appointment_visit(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment