|
|
@@ -42,9 +42,8 @@ class DashboardViewTests(ClientTestCase):
|
|
42
|
42
|
self.assertEquals(report['max_revenue'], 0)
|
|
43
|
43
|
|
|
44
|
44
|
def test_dashboard_hourly_report_with_orders(self):
|
|
45
|
|
- order_1 = create_order(total_incl_tax=34.05, total_excl_tax=34.05)
|
|
46
|
|
- order_2 = create_order(total_incl_tax=21.90, total_excl_tax=21.90)
|
|
47
|
|
-
|
|
|
45
|
+ create_order(total_incl_tax=D('34.05'), total_excl_tax=D('34.05'))
|
|
|
46
|
+ create_order(total_incl_tax=D('21.90'), total_excl_tax=D('21.90'))
|
|
48
|
47
|
report = IndexView().get_hourly_report()
|
|
49
|
48
|
|
|
50
|
49
|
self.assertEquals(len(report['order_total_hourly']), 24)
|