def test_update_analytics(self): self.assertNotEqual(server.update_analytics()['day'], {}) self.assertNotEqual(server.update_analytics()['day']['hour1'], []) self.assertNotEqual(server.update_analytics()['week'], {}) self.assertNotEqual(server.update_analytics()['week']['day1'], []) self.assertNotEqual(server.update_analytics()['month'], {}) self.assertNotEqual(server.update_analytics()['month']['week1'], []) self.assertIsNotNone(server.update_analytics()['filters']) self.assertIsNotNone(server.update_analytics()['allfilters'])
def update_analytics_task(): update_analytics() return None