diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.1.json index f9689a7cfb..2620a392d8 100644 Binary files a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.1.json and b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.2.json index d5fcab1004..35fcca7f6e 100644 Binary files a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.2.json and b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.create.2.json differ diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json index 6b64687baa..7313a2152a 100644 Binary files a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json and b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.1.json differ diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json index db86e98e57..6f79a5756e 100644 Binary files a/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json and b/corporate/tests/stripe_fixtures/attach_discount_to_realm--Charge.list.2.json differ diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions--Charge.create.1.json b/corporate/tests/stripe_fixtures/billing_page_permissions--Charge.create.1.json index 4658164dff..850efd1f73 100644 Binary files a/corporate/tests/stripe_fixtures/billing_page_permissions--Charge.create.1.json and b/corporate/tests/stripe_fixtures/billing_page_permissions--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/invoice_plan--Charge.create.1.json b/corporate/tests/stripe_fixtures/invoice_plan--Charge.create.1.json index 4658164dff..850efd1f73 100644 Binary files a/corporate/tests/stripe_fixtures/invoice_plan--Charge.create.1.json and b/corporate/tests/stripe_fixtures/invoice_plan--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/replace_payment_source--Charge.create.1.json b/corporate/tests/stripe_fixtures/replace_payment_source--Charge.create.1.json index 4658164dff..850efd1f73 100644 Binary files a/corporate/tests/stripe_fixtures/replace_payment_source--Charge.create.1.json and b/corporate/tests/stripe_fixtures/replace_payment_source--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/replace_payment_source--Invoice.pay.1.json b/corporate/tests/stripe_fixtures/replace_payment_source--Invoice.pay.1.json index f47d53b816..6083899e29 100644 Binary files a/corporate/tests/stripe_fixtures/replace_payment_source--Invoice.pay.1.json and b/corporate/tests/stripe_fixtures/replace_payment_source--Invoice.pay.1.json differ diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Charge.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Charge.create.1.json index 1d47b5d357..ec20193c31 100644 Binary files a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Charge.create.1.json and b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_automatic_license_management--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Charge.create.1.json b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Charge.create.1.json index bea8e4b1fb..047eb12da3 100644 Binary files a/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Charge.create.1.json and b/corporate/tests/stripe_fixtures/switch_from_monthly_plan_to_annual_plan_for_manual_license_management--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.create.1.json index 97aa7b597c..abbe645d53 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.create.1.json and b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json index 447424d530..b3bbff411e 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json and b/corporate/tests/stripe_fixtures/upgrade_by_card--Charge.list.1.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.create.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.create.1.json index 97aa7b597c..abbe645d53 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.create.1.json and b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.create.1.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json index 447424d530..b3bbff411e 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json and b/corporate/tests/stripe_fixtures/upgrade_by_card_with_outdated_seat_count--Charge.list.1.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.create.2.json b/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.create.2.json index de4cc4e7c1..3a826bb223 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.create.2.json and b/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.create.2.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.1.json b/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.1.json index 555cc04119..d11322e442 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.1.json and b/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.1.json differ diff --git a/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.2.json b/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.2.json index 5ade12e452..d5d988f3cb 100644 Binary files a/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.2.json and b/corporate/tests/stripe_fixtures/upgrade_where_first_card_fails--Charge.list.2.json differ diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py index e1cf9e02fe..136a0383d1 100644 --- a/corporate/tests/test_stripe.py +++ b/corporate/tests/test_stripe.py @@ -181,8 +181,8 @@ def normalize_fixture_data(decorated_function: CallableT, if match not in normalized_values[pattern]: normalized_values[pattern][match] = translation % (len(normalized_values[pattern]) + 1,) file_content = file_content.replace(match, normalized_values[pattern][match]) - file_content = re.sub(r'(?<="risk_score": )(\d+)', '00', file_content) - file_content = re.sub(r'(?<="times_redeemed": )(\d+)', '00', file_content) + file_content = re.sub(r'(?<="risk_score": )(\d+)', '0', file_content) + file_content = re.sub(r'(?<="times_redeemed": )(\d+)', '0', file_content) file_content = re.sub(r'(?<="idempotency-key": )"([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f-]*)"', '"00000000-0000-0000-0000-000000000000"', file_content) # Dates