Преглед изворни кода

Updated tests to hopefully get 2.6 tests passing on Travis

master
David Winterbottom пре 13 година
родитељ
комит
be2313e4e0
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2
    3
      oscar/apps/dashboard/tests.py

+ 2
- 3
oscar/apps/dashboard/tests.py Прегледај датотеку

@@ -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)

Loading…
Откажи
Сачувај