Guest User

Untitled

a guest
Apr 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. class EmailLogin(LoadCartMixin, APIView):
  2.  
  3. def post(self, request, format=None):
  4. session_cart = self.request.session.get('cart')
  5.  
  6. def test_void(self):
  7. cart = {
  8. u'meals': {self.meal.id: [{u'options': [self.meal_option.id], u'submeals': {}, u'quantity': 1}]}
  9. }
  10.  
  11. session = self.client.session
  12. session['cart'] = cart
  13. session.save()
  14.  
  15. response = self.client.post(
  16. reverse('accounts:email-login-url'),
  17. data={'email': self.restaurant_admin_email, 'password': self.restaurant_admin_password}
  18. )
Add Comment
Please, Sign In to add comment