Пример #1
0
 def test_daily_history_sum(self):
     self.seed_db()
     history = daily_historical_sum()
     self.assertEqual(history[0], (511661.09, datetime.date(2015, 12, 5)))
     self.assertEqual(history[1], (500000, datetime.date(2015, 12, 1)))
Пример #2
0
def view_history():
    return render_template("history.html", history=format_sums(daily_historical_sum()))