statistics bug
When running statistics test on March 31st one test is failing. Changing system date to different makes the error to go away...
Here is stacktrace
======================================================================
FAIL: test_get_statistics_for_month_one_appointment (web.tests.test_statistics.TestStatistics)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\piotr.gawron\workspace\scheduling-system\smash\web\tests\test_statistics.py", line 41, in test_get_statistics_for_month_one_appointment
self.check_statistics(statistics, 0, 1, 0, {"C": [0, 0]}, ['Scheduled'])
File "C:\Users\piotr.gawron\workspace\scheduling-system\smash\web\tests\test_statistics.py", line 80, in check_statistics
self.assertEqual(expected_visits_ended, statistics['general']['visits_ended'
])
AssertionError: 1 != 0
----------------------------------------------------------------------
Ran 100 tests in 7.568s
FAILED (failures=1)
Destroying test database for alias 'default'...