Esempio n. 1
0
 def setUp(self):
     self.order = factories.create_order()
     self.handler = EventHandler()
     basket = factories.create_basket(empty=True)
     add_product(basket, D('10.00'), 5)
     self.order = factories.create_order(basket=basket)
     self.settled = models.PaymentEventType.objects.create(name='Settled')
Esempio n. 2
0
 def setUp(self):
     self.order = factories.create_order()
     self.handler = EventHandler()
     self.shipped = models.ShippingEventType.objects.create(
         name='Shipped')
     self.returned = models.ShippingEventType.objects.create(
         name='Returned')