Browse Source

Updated tests to hopefully get 2.6 tests passing on Travis

master
David Winterbottom 13 years ago
parent
commit
be2313e4e0
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      oscar/apps/dashboard/tests.py

+ 2
- 3
oscar/apps/dashboard/tests.py View File

42
         self.assertEquals(report['max_revenue'], 0)
42
         self.assertEquals(report['max_revenue'], 0)
43
 
43
 
44
     def test_dashboard_hourly_report_with_orders(self): 
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
         report = IndexView().get_hourly_report()
47
         report = IndexView().get_hourly_report()
49
 
48
 
50
         self.assertEquals(len(report['order_total_hourly']), 24)
49
         self.assertEquals(len(report['order_total_hourly']), 24)

Loading…
Cancel
Save