Fix tests

This commit is contained in:
Christian Cueni 2020-02-25 16:12:01 +01:00
parent b572523a33
commit 13295e2d2e
3 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,6 @@ class Coupon(relay.ClientIDMutation):
def mutate_and_get_payload(cls, root, info, **kwargs): def mutate_and_get_payload(cls, root, info, **kwargs):
coupon_code = kwargs.get('coupon_code_input').strip() coupon_code = kwargs.get('coupon_code_input').strip()
hep_client = HepClient() hep_client = HepClient()
return cls(success=True, errors=[])
try: try:
hep_id = info.context.user.hep_id hep_id = info.context.user.hep_id

View File

@ -99,7 +99,7 @@
"row_invoiced": 0, "row_invoiced": 0,
"row_total": 44.88, "row_total": 44.88,
"row_total_incl_tax": 46, "row_total_incl_tax": 46,
"sku": "978-3-0355-0708-9", "sku": "000-4-5678-9012-3",
"store_id": 1, "store_id": 1,
"tax_amount": 1.12, "tax_amount": 1.12,
"tax_invoiced": 0, "tax_invoiced": 0,

View File

@ -99,7 +99,7 @@
"row_invoiced": 0, "row_invoiced": 0,
"row_total": 44.88, "row_total": 44.88,
"row_total_incl_tax": 46, "row_total_incl_tax": 46,
"sku": "000-4-5678-9012-3", "sku": "978-3-0355-1450-6",
"store_id": 1, "store_id": 1,
"tax_amount": 1.12, "tax_amount": 1.12,
"tax_invoiced": 0, "tax_invoiced": 0,