示例#1
0
 def setUp(self):
     site = Site.objects.all()[0]
     site.plan = Plan.objects.filter(has_online_ordering=True)[0]
     site.save()
     location, = site.location_set.all()
     location.receive_via = Location.RECEIPT_EMAIL
     location.tax_rate = '6.25'
     location.save()
     FakeSession.generate(count=1)
示例#2
0
 def setUp(self):
     FakeSession.generate(count=1)
     self.session = Session.objects.all()[0]
     self.cart = Cart(self.session)
     FakeCoupon.generate(count=1)
     self.coupon = Coupon.objects.all()[0]
     site = Site.objects.all()[0]
     location = site.location_set.all()[0]
     location.tax_rate = '6.25'
     location.save()