def test_order_event_display(admin_user, type, order): parameters = { 'message': 'Example Note', 'quantity': 12, 'email_type': OrderEventsEmails.PAYMENT.value, 'email': '*****@*****.**', 'amount': '80.00', 'composed_id': 12} event = OrderEvent( user=admin_user, order=order, parameters=parameters, type=type) event.get_event_display()
def test_order_event_display(admin_user, type, order): parameters = { 'message': 'Example Note', 'quantity': 12, 'email_type': OrderEventsEmails.PAYMENT.value, 'email': '*****@*****.**', 'amount': {'_type': 'Money', 'amount': '10.00', 'currency': 'USD'}, 'composed_id': 12, 'tracking_number': '5421AB', 'oversold_items': ['Blue Shirt', 'Red Shirt']} event = OrderEvent( user=admin_user, order=order, parameters=parameters, type=type) event.get_event_display()
def test_order_event_display(admin_user, type, order): parameters = { 'message': 'Example Note', 'quantity': 12, 'email_type': OrderEventsEmails.PAYMENT.value, 'email': '*****@*****.**', 'amount': '80.00', 'composed_id': 12 } event = OrderEvent(user=admin_user, order=order, parameters=parameters, type=type) event.get_event_display()
def test_order_event_display(admin_user, type, order): parameters = { "message": "Example Note", "quantity": 12, "email_type": OrderEventsEmails.PAYMENT, "email": "*****@*****.**", "amount": {"_type": "Money", "amount": "10.00", "currency": "USD"}, "composed_id": 12, "tracking_number": "5421AB", "oversold_items": ["Blue Shirt", "Red Shirt"], } event = OrderEvent(user=admin_user, order=order, parameters=parameters, type=type) display_order_event(event)