From f52e9d143b140a69f409403ff87a22b49e516445 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Mon, 3 Dec 2018 12:13:53 -0800 Subject: [PATCH] billing: Further normalize timestamps in tests. Hopefully this will make it easier still to look at diffs with GENERATE_STRIPE_FIXTURES = True. --- ..._discount_to_realm:Invoice.upcoming.1.json | Bin 2854 -> 2854 bytes ..._discount_to_realm:Invoice.upcoming.2.json | Bin 2857 -> 2857 bytes ...g_page_permissions:Invoice.upcoming.1.json | Bin 2302 -> 2302 bytes ...g_page_permissions:Invoice.upcoming.2.json | Bin 2302 -> 2302 bytes ..._changes_end_to_end:Customer.create.1.json | Bin 1583 -> 1583 bytes ...hanges_end_to_end:Customer.retrieve.1.json | Bin 4882 -> 4882 bytes ...hanges_end_to_end:Customer.retrieve.2.json | Bin 4882 -> 4882 bytes ...hanges_end_to_end:Customer.retrieve.3.json | Bin 4882 -> 4882 bytes ...hanges_end_to_end:Customer.retrieve.4.json | Bin 4882 -> 4882 bytes ...hanges_end_to_end:Customer.retrieve.5.json | Bin 4882 -> 4882 bytes ...nges_end_to_end:Subscription.create.1.json | Bin 2160 -> 2160 bytes ...ity_changes_end_to_end:Token.create.1.json | Bin 826 -> 826 bytes .../downgrade:Customer.create.1.json | Bin 1581 -> 1581 bytes .../downgrade:Customer.retrieve.1.json | Bin 4880 -> 4880 bytes .../downgrade:Customer.retrieve.2.json | Bin 4884 -> 4884 bytes .../downgrade:Customer.retrieve.3.json | Bin 2222 -> 2222 bytes .../downgrade:Customer.save.1.json | Bin 1587 -> 1587 bytes .../downgrade:Invoice.upcoming.1.json | Bin 6226 -> 6226 bytes .../downgrade:Subscription.create.1.json | Bin 2160 -> 2160 bytes .../downgrade:Subscription.delete.1.json | Bin 2178 -> 2178 bytes .../downgrade:Subscription.retrieve.1.json | Bin 2178 -> 2178 bytes .../downgrade:Subscription.save.1.json | Bin 2164 -> 2164 bytes .../downgrade:Token.create.1.json | Bin 826 -> 826 bytes ...de_with_money_owed:Invoice.upcoming.1.json | Bin 4205 -> 4205 bytes ..._with_money_owed:InvoiceItem.create.1.json | Bin 459 -> 459 bytes .../initial_upgrade:Customer.create.1.json | Bin 1583 -> 1583 bytes .../initial_upgrade:Customer.retrieve.1.json | Bin 4882 -> 4882 bytes .../initial_upgrade:Customer.retrieve.2.json | Bin 4882 -> 4882 bytes .../initial_upgrade:Invoice.upcoming.1.json | Bin 2302 -> 2302 bytes ...initial_upgrade:Subscription.create.1.json | Bin 2160 -> 2160 bytes .../initial_upgrade:Token.create.1.json | Bin 826 -> 826 bytes ...yment_method_string:Customer.create.2.json | Bin 1581 -> 1581 bytes ...yment_method_string:Customer.create.3.json | Bin 780 -> 780 bytes ...ent_method_string:Customer.retrieve.5.json | Bin 4880 -> 4880 bytes ...ent_method_string:Customer.retrieve.6.json | Bin 2217 -> 2217 bytes ...ent_method_string:Customer.retrieve.7.json | Bin 3438 -> 3438 bytes ...ent_method_string:Customer.retrieve.8.json | Bin 781 -> 781 bytes ...payment_method_string:Customer.save.1.json | Bin 4894 -> 4894 bytes ...payment_method_string:Customer.save.2.json | Bin 3452 -> 3452 bytes ...eplace_payment_source:Customer.save.2.json | Bin 1439 -> 1439 bytes ..._billing_by_invoice:Customer.create.1.json | Bin 782 -> 782 bytes ...illing_by_invoice:Customer.retrieve.1.json | Bin 3440 -> 3440 bytes ...illing_by_invoice:Customer.retrieve.2.json | Bin 6216 -> 3436 bytes ...illing_by_invoice:Customer.retrieve.3.json | Bin 6216 -> 6216 bytes ...ade_billing_by_invoice:Invoice.list.1.json | Bin 2880 -> 2880 bytes ...billing_by_invoice:Invoice.upcoming.1.json | Bin 4863 -> 4863 bytes ...ling_by_invoice:Subscription.create.1.json | Bin 2154 -> 2154 bytes ...illing_by_invoice:Subscription.save.1.json | Bin 2150 -> 2150 bytes ..._fails_at_first:Subscription.create.1.json | Bin 1451 -> 1451 bytes ...outdated_seat_count:Customer.create.1.json | Bin 1583 -> 1583 bytes ...tdated_seat_count:Customer.retrieve.1.json | Bin 4882 -> 4882 bytes ...ated_seat_count:Subscription.create.1.json | Bin 2160 -> 2160 bytes ...th_outdated_seat_count:Token.create.1.json | Bin 826 -> 826 bytes corporate/tests/test_stripe.py | 7 ++++++- 54 files changed, 6 insertions(+), 1 deletion(-) diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm:Invoice.upcoming.1.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm:Invoice.upcoming.1.json index 5d820ec5bb98a14fd7651839c098e09630c9c178..ab08681f5baf17f81244389d53da5f785e334418 100644 GIT binary patch delta 22 YcmZ1`woGh8Dl4Y}6qs(#W8J|D07_>DGynhq delta 22 dcmZ1`woGh8Dl4a{xv8;{p@F&K<~-INtN=@!22KC~ diff --git a/corporate/tests/stripe_fixtures/attach_discount_to_realm:Invoice.upcoming.2.json b/corporate/tests/stripe_fixtures/attach_discount_to_realm:Invoice.upcoming.2.json index 910c9e57a17d78fa5e64b9d8e2424050b2074a52..e1268bba87346bb6489bddaeeffd4a7238095a09 100644 GIT binary patch delta 18 ZcmZ1}wo+_EI_u;bW)4Qv%>}GGSphrg1@B&tN>Nu2BZK0 diff --git a/corporate/tests/stripe_fixtures/billing_page_permissions:Invoice.upcoming.2.json b/corporate/tests/stripe_fixtures/billing_page_permissions:Invoice.upcoming.2.json index a8fb7a8f6d4beed56e3ea4da4718b0e530af3da2..f503001e12708c8b8e6f54c073a6e418a0a90556 100644 GIT binary patch delta 22 Ycmew-_)l@B&tN>Nu2BZK0 diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.create.1.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.create.1.json index ff4507e892a11d6739b482871bf7ccef5d6f7cbc..a296ccce0687fc65f51d6326ddd9658dd86ba265 100644 GIT binary patch delta 20 WcmZ3_vz}*y2B!fO7;ZHD#|i*EAqCC= delta 20 bcmZ3_vz}*y2B)csvAKn*frY_F!+)#*J(LCY diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.1.json index 7cbd276237e1413e77180f8918aa1c39d6de545e..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 145 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYrpfaf4hMR8) HS}_6uj58tH diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.2.json index 7cbd276237e1413e77180f8918aa1c39d6de545e..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 145 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYrpfaf4hMR8) HS}_6uj58tH diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.3.json index 7cbd276237e1413e77180f8918aa1c39d6de545e..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 145 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYrpfaf4hMR8) HS}_6uj58tH diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.4.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.4.json index 7cbd276237e1413e77180f8918aa1c39d6de545e..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 145 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYrpfaf4hMR8) HS}_6uj58tH diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Customer.retrieve.5.json index 7cbd276237e1413e77180f8918aa1c39d6de545e..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 145 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYrpfaf4hMR8) HS}_6uj58tH diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Subscription.create.1.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Subscription.create.1.json index f1da4b4096084ee90f451c933cedc1c48268a91b..0b781e6f4d2b0707d20036a120402fa665786898 100644 GIT binary patch delta 142 zcmew$@IhcgDyIPy7){LcK;rC|)`!U$>u@P3C?%H`6{Y5t#22I%W#*^E7ndX!l_*&$ p7{XK;P3C00&H>|Xe!oTF#_Jp~-sTsKJdB*C#+DYwhL+}roBuMEFe7oR*d_sGVKz?| H<%k9VG^8eS diff --git a/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Token.create.1.json b/corporate/tests/stripe_fixtures/billing_quantity_changes_end_to_end:Token.create.1.json index 4964dd83eff30eeb78074b6cf764765f5a958ed2..cb80bbb8d2ed43fe8f73182629810407b927efed 100644 GIT binary patch delta 21 XcmdnRwu^1UP9{zRC@`ITh^YbqN<0R6 delta 21 ccmdnRwu^1UP9{!M6Jv7=Qv(Zw$%mLK085(&oB#j- diff --git a/corporate/tests/stripe_fixtures/downgrade:Customer.create.1.json b/corporate/tests/stripe_fixtures/downgrade:Customer.create.1.json index adf01cdb09847cee85f1f17a67a77ee9c21c0983..090930943679ef46660fcb50253218e757a1cbfa 100644 GIT binary patch delta 20 WcmZ3>vzBLq2B!fO7;ZHD!wLX9(FMo= delta 20 bcmZ3>vzBLq2B)csvAKn*fraTt!#}J5JzWL# diff --git a/corporate/tests/stripe_fixtures/downgrade:Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/downgrade:Customer.retrieve.1.json index aefc265018c6c0830fda2363566166558ed54e7e..29d08b92ddaa06784a1a504badff09742cdd5b28 100644 GIT binary patch delta 148 zcmbQBHbHHI2B!fO7;ZGQYM-ZpGT-M+I&sWiV*+{Xd`I= delta 148 zcmbQBHbHHI2B)csvAKn*fraTtLrV@g&unrrM-+lLiBoFw2M%^lQ*%>eBSQlVvq_xF z2-(RCSWPDYD^EB9xeIz9neI2ms%vB7Xn? delta 147 zcmbQDHbrfM2B)csvAKn*fraTtLrV@g&unrrM-+lLiBoFw2M%^lQ*%>eBSQlVvq_xF z2-(RCSWPD)!~{vi(7q@z(t@EsO=V; JZwXp40sv4kBlrLS diff --git a/corporate/tests/stripe_fixtures/downgrade:Customer.retrieve.3.json b/corporate/tests/stripe_fixtures/downgrade:Customer.retrieve.3.json index 1aaa6a6c7a8c20552b0b3b86ac5f6a0f7f4a65a6..c2b5641f12e895a919164aa12991e2da09d07b97 100644 GIT binary patch delta 20 WcmZ1{xK40_E~fz$7;ZGH-~a$T00mtD delta 20 bcmZ1{xK40_E~lx9vAKn*fraTtvkDFXJ&Xm3 diff --git a/corporate/tests/stripe_fixtures/downgrade:Customer.save.1.json b/corporate/tests/stripe_fixtures/downgrade:Customer.save.1.json index 575dbf8b46b2bf4bb7fe4e0ed9f3057ad37dd727..db5505b756f15529c5a7290522c391f7e788d7d1 100644 GIT binary patch delta 20 WcmdnYvzcdtE~fz$7;ZHC%L)KJ5e44> delta 20 bcmdnYvzcdtE~lx9vAKn*fraTtv%jnWKAi>& diff --git a/corporate/tests/stripe_fixtures/downgrade:Invoice.upcoming.1.json b/corporate/tests/stripe_fixtures/downgrade:Invoice.upcoming.1.json index 43f6211c271a92e7d7a894c6c8d4da9a8f12e5b0..e7be90b9f44e438f448290a950d5c549db29ab0a 100644 GIT binary patch delta 349 zcmca)aLHhU3L~ch6c}&TWwd9~fOB=Y6yQLqxFoTtM9E6Q5GHLtc{cB6xL(uE0W5MX z#OgJ}(EE>Za{#w8(UxNxu!L#zZvk~ixC<=syWSYX1y2|^zY>{^2o1~0ePV^`Fy9)3 dj8iH|Ey~PKiN^>FqseOGTi{_~KKZeDJ^+#CQ#1eo delta 348 zcmca)aLHhU3L~efxv8;{p@D_jW?e>mCJi`Ohf4ttl!{9di%OKN6bwyGjLj`f4J<4t z&*t6CX=-d~VQgq=Zn!ysMUI77y%rdH|1oY3;8rHua!do3Fm3)Vpw6gnW?*J%Vr*hz zhQswxzfPXTy9LGZPZ&495}6GR3==a8v&ns8h3Y6_p;VAsl$oCrj}a7Rlhwq5rojW| Hv3NcJ^|n=v diff --git a/corporate/tests/stripe_fixtures/downgrade:Subscription.create.1.json b/corporate/tests/stripe_fixtures/downgrade:Subscription.create.1.json index 66901a8e408bd4994a284e12be1ad845f8d1f842..d36cc6db0d417c6fe5a6cdbf52807c0fc63d4a02 100644 GIT binary patch delta 143 zcmew$@IhcgDyIPy7){LcK;rC|)`!U$>u@P3C?%H`6{Y5t#22I%W#*^E7ndX!l_*&$ p7{XK;P3C004mZGL^GiloTF#_Mnc%s0Pe{i7#al#!lvEtmS~2J9!FY1YF8w^H)Z0MmX1WGbeKyGdIj8Qys3!g3QvJ Pm$H>3)R;|H<%k6U%secS delta 185 zcmZn?Y!aN1%4uq1Y;Iv{U|}{f&(sadu{6-(QczGzE=o--Nlj6*QZR(8f=HAW6{Y5t z#22I%W#*^Er{+P_n420K8G=lDDT^?6GCyN22h7~bQy3%QQs$e#GIBF=ni^YL7#mue h8*b)gE@S3~b9J~T3o=V@UdmPuR0DOS#bi~ESO8jUE-nB7 diff --git a/corporate/tests/stripe_fixtures/downgrade:Subscription.retrieve.1.json b/corporate/tests/stripe_fixtures/downgrade:Subscription.retrieve.1.json index 220c523cdc6a54f3118a6697705526cebcc14863..f441c0c632e7feee5dbb81405cc2238b2c126992 100644 GIT binary patch delta 185 zcmZn?Y!aN1%4q-vMicW)-Jonk105~}1*PPo)Wnk16eTMKL%1r4L}^h`YF{i7#al#!lvEtmS~2J9!FY1YF8w^H)Z0MmX1WGbeKyGdIj8Qys3!g3QvJ Pm$H>3)R;|H<%k6U%secS delta 185 zcmZn?Y!aN1%4uq1Y;Iv{U|}{f&(sadu{6-(QczGzE=o--Nlj6*QZR(8f=HAW6{Y5t z#22I%W#*^Er{+P_n420K8G=lDDT^?6GCyN22h7~bQy3%QQs$e#GIBF=ni^YL7#mue h8*b)gE@S3~b9J~T3o=V@UdmPuR0DOS#bi~ESO8jUE-nB7 diff --git a/corporate/tests/stripe_fixtures/downgrade:Subscription.save.1.json b/corporate/tests/stripe_fixtures/downgrade:Subscription.save.1.json index 0f29ab345f3e07f50933ccba023bb3495fb73121..2879aeb08d933475df1c73757d68d1ac66fde134 100644 GIT binary patch delta 143 zcmew&@I_!kDyIPy7){LcK;rC|)`!U$>u@P3C?%H`6{Y5t#22I%W#*^E7ndX!l_*&$ p7{XK;P3C004mZGL^GiloTF#_Mnc%s0Pe@K#|%H#4UJ6qs&K=UTwD*@R7;2`*-~IfR1?!8HOZVPgXT#aa!h delta 57 zcmaE>@K#|%H#4WHiLtqbsez^0=5($FOq)&E#F^k?rkg`JxPV-9Q)44T150C|5;isf D(jE>Q diff --git a/corporate/tests/stripe_fixtures/downgrade_with_money_owed:InvoiceItem.create.1.json b/corporate/tests/stripe_fixtures/downgrade_with_money_owed:InvoiceItem.create.1.json index a7cc14a574ab40569cf48d2b2913a109b2a26a58..e64d97111489a8aaed22bea4cd0b1b9101ee654a 100644 GIT binary patch delta 21 XcmX@je42TKGb5(~6qrr+VXOxLL#qX^ delta 21 ccmX@je42TKGb5*|iLtqbsez^GWFN+Q07WDP*8l(j diff --git a/corporate/tests/stripe_fixtures/initial_upgrade:Customer.create.1.json b/corporate/tests/stripe_fixtures/initial_upgrade:Customer.create.1.json index 72fb0ff04cbabc585c97bc56a0e411e9a8d8dbf4..a296ccce0687fc65f51d6326ddd9658dd86ba265 100644 GIT binary patch delta 20 WcmZ3_vz}*y2B!fO7;ZHD#|i*EAqCC= delta 20 bcmZ3_vz}*y2B)csvAKn*p@G3h!+)#*J!=K- diff --git a/corporate/tests/stripe_fixtures/initial_upgrade:Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/initial_upgrade:Customer.retrieve.1.json index e8a67d95325e72f0aef2485e352a1fd99d77d116..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 144 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYr`+rSdvG~3 n!sSdRH}VQ^Ue2w~!VR;=M2Bng9B%bZ0_PFRj5gm8v|pfae{hMR8) HS}_6uUJ4<2 diff --git a/corporate/tests/stripe_fixtures/initial_upgrade:Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/initial_upgrade:Customer.retrieve.2.json index e8a67d95325e72f0aef2485e352a1fd99d77d116..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 144 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYr`+rSdvG~3 n!sSdRH}VQ^Ue2w~!VR;=M2Bng9B%bZ0_PFRj5gm8v|pfae{hMR8) HS}_6uUJ4<2 diff --git a/corporate/tests/stripe_fixtures/initial_upgrade:Invoice.upcoming.1.json b/corporate/tests/stripe_fixtures/initial_upgrade:Invoice.upcoming.1.json index b8750311ca3197f58d87ff3b461f841e5c08860a..9ce03b7bc2bec9ec709817c5b2885d47cdccc789 100644 GIT binary patch delta 140 zcmew-_)ldx&j2dPJW|k(#rUr&OTnccYR9uo+RH9_1UU`}g|VTfx#4C;mUw1}Q6}aFhLbbd3)SIDK_)2`q!wl7r^F)+GBGx{Fa=sW InUUi!093RhWB>pF diff --git a/corporate/tests/stripe_fixtures/initial_upgrade:Subscription.create.1.json b/corporate/tests/stripe_fixtures/initial_upgrade:Subscription.create.1.json index 9c98765439d007b004d444997acf038082fe2dd5..0b781e6f4d2b0707d20036a120402fa665786898 100644 GIT binary patch delta 141 zcmew$@IhcgDyIPy7){LcK;rC|)`!U$>u@P3C?%H`6{Y5t#22I%W#*^E7ndX!l_*&$ p7{XK;P3C00&JN{me$L3t2sh1S^IxVCW+ZME+a!dn(PUAMXaKoTF#_Q}*-sb0wyo{Wt#+DYwhL+}roBuMEFe7oR*d_sGVHQso H<%k9V1dJvZ diff --git a/corporate/tests/stripe_fixtures/initial_upgrade:Token.create.1.json b/corporate/tests/stripe_fixtures/initial_upgrade:Token.create.1.json index 83444a6786a9eaec82184595d4e6b7a4187d57b6..38f99dd374a9b8505e2349c474b06d5f56566602 100644 GIT binary patch delta 21 XcmdnRwu^1UP9{zRC@`FSh^YbqN+h($ diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.create.2.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.create.2.json index 19b6fd9718aa864a45c267d9e095c895a82ec0be..52dc3a30502170f028507bc6cab25a1c82ed76db 100644 GIT binary patch delta 14 VcmZ3>vzBK=3?rlY=2*rHEC3|W1f2i? delta 14 VcmZ3>vzBK=3?rk-=2*rHEC3|E1eyQ< diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.create.3.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.create.3.json index 1b6bdd36cbe4e0abf5fd4aa16bc433c2da2c86e0..55a40506031c6ab3d920e46ac6009d11aefb6a80 100644 GIT binary patch delta 14 VcmeBS>tWmA$jE51*@^KKBLE+L1Q7rL delta 14 VcmeBS>tWmA$jE5A*@^KKBLE+31P%ZI diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.retrieve.5.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.retrieve.5.json index 8ad2369583c5f9ba7629014971e72667c86e5b66..68e0a6bd74e6ff37f589848ce965bc8ba46fe73c 100644 GIT binary patch delta 14 VcmbQBHbHH}4Q593%{Q6N`2i`21qA>A delta 14 VcmbQBHbHH}4Q57@%{Q6N`2i_*1p)v7 diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.retrieve.6.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.retrieve.6.json index 4b20db7024f597eac6d6ebe20d3569d7928aa5eb..c76ca69a90842a1d21c18002feaaa1556af04ebf 100644 GIT binary patch delta 14 WcmZ1}xKeP#4Q593%{Q4ZumAunK?R!t delta 14 WcmZ1}xKeP#4Q57@%{Q4ZumAunF9nzY diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.retrieve.7.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.retrieve.7.json index d2d57cd408544009f1b601c46dc5688e698ff3e8..3ace488ca87c4c8c10e95e0aacd910eaf45bea1a 100644 GIT binary patch delta 14 VcmaDS^-gMo6Ct);E#K>r|*_rVaBLE+y1Qh@P delta 14 VcmeBW>t);E#K>s6*_rVaBLE+g1QGxM diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.save.1.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.save.1.json index 8bb853efad8f83ff2b3456d8c3aee49cc23dc30a..a7595fbbd7f372f08251e2ce7aa601e3a762d875 100644 GIT binary patch delta 14 VcmbQIHcxHC4Q593%{Q4{`2i~s1up;q delta 14 VcmbQIHcxHC4Q57@%{Q4{`2i~a1uOsn diff --git a/corporate/tests/stripe_fixtures/payment_method_string:Customer.save.2.json b/corporate/tests/stripe_fixtures/payment_method_string:Customer.save.2.json index b2c4cc4f217781916412ef54b02f7ba8aef4b090..344fa62eaed30d7b7863b2df7716ab5e13d09244 100644 GIT binary patch delta 14 Vcmew(^+#%h6Ctmas!D#>mh8qptmas!D(t@Y;Iv{Xk@(6@GcVoH-iO% diff --git a/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Customer.retrieve.1.json index 3681282b6ddba41ded2e292a1a0b88b02dd20c78..59d13ca2172734650d173a3b5a1ca72ed6bcd98b 100644 GIT binary patch delta 150 zcmew$^+9Ta2B!fO7;ZG2&IIQfO}@w!g~W?vmYVFx%+3K*Jvo+H1tGn;i&>BniMxcw o5y3T?EXXFjnUPJCg&U^ZM2BngH&*q{FWns<@mMhe0B>0$761SM delta 149 zcmew$^+9Ta2B)csvAKn*p^@=M!|6;2-sFo+Q5-P2$+67Rll_?4IZVw>jg1Tqjer6w z2(_ELm<1W(T$9a9SR8>|V@nHTLrZhR$%1Ucn;F?OS-9asI$V>#v8r#5;kt;>X1v*q H$BGdEu{0wp diff --git a/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Customer.retrieve.2.json b/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Customer.retrieve.2.json index ed0007ef51c68559142356ebef61fa395ad01b94..5137016d01188aa8e5400e7806780fe49577d89b 100644 GIT binary patch delta 163 zcmX?M@J4Ea2B!fO7)~_QX2~nf$=RI8>d!d2o5z{aVDfpMt8fKIlh^V_A@KzG6ggm; zC-d`33l*0n7L_PjDHy^;jW(z82{IzIY;NFpL~ucEbaMIwKCiSCR@U(M;^KVy^73MF zwse9)YuQ#$AYp^489l7!S`3ZlrW-UF`2se``i6t0T3K$jXw6z`c+UwF=k2gvk%U=k zEPwm%{a>&D{Qd6D_30VeCtEAge&DUxVvOwe&CTt}udmS~vao7*>ci?cIEaesB;GqJ_OW`VM*Q4)%6Bou|RWOT)|hiUSiSNDI&U#T%J zyvM508rVvMvEA0y7k;%7fp`WR#ZtMPceV>yw!9bTDHaETsAL$33&@(@<@M zz9-Ni5TP0JBJTx@S&-R5x0Cn6>{&?cY5?CH3c2a18(bP(&7c~)s>TXCVAa@G83V(X zj|Ph67AK*Wrh>xR4smJBDjN;-vaQj8?+`!yfSbF>=2ZqG?rAQygkM*UMCa6btd@;x zKMvp-+{Gq^$1V!hwHWi~p;7(GcX#yTT0VSF&RMMtVRaJe*oYgkZKQoguf{H9Zg^&f zj;Z#cQ*RES)B5BgnpJw%mD&v*;eeP{i|$Nf?JOA_HcQnT_gu zO!Zg^<_HBV=^4dO^55k9BvJ{yUaClV&Et81{D{1J_=cMI0Oyd-vAjddp;bNW&U4Qm z?E?RlwBsSiwnnvaUiR{kQ#^u;NO2z@p@PR<(k<{3Jq=dY;nC z7zl(CiD!@ds1xGYY1ODP=RYc>fp~Dp`>w!qlk^Z~6MTcoCQd{8LJp8CH>nk0YGEZ&W2Lur^;y zpiv2TpUK8ehhM1%Xdiiv8Q3Pc=iRs{!U??!ub!$#a=3|YXd}t*UT6$-E4-*RTv+s| zx|)N{JYk6%E|vKuzzKIzlCF0sL>GjT69)C&O->dP_cYva-Cvl{ z-F%;?aEXe3TQh1t1ZQuK8oYFzmb9fgMxUIBa=`>u&k@+r#SfyUVM0=KW5Vz%6`LkorLowmeA@uBX8m{){?POv;qz z89%7)FE99MRrSI1AroyoKvadaj%`3SE@( zl9b|w&wD#!8BORjX&qJon0aVnhe2f?PL2hVgAn5BFaO5r5`j}rpCAswMg#+FogKi4 z(lS)+sRRTtQ;WmEknB-AkifnH4A>kDIKdnMF!u>~-{^zN;h~4m&hUX{&$y>OT^@1# zzLW1M=^b%gcs&P>*uboKOcuS<=LwJ>E&nGQZT#{H+qGY9D2op8h moW>`}h|sdRf!`6qHQ9Vhz={PfYqFVF^amr{#Lc|o){FqVhcc`H delta 220 zcmX?MaKd1M2B)csvAKn*p^@=K!(tXAB^|EGGVE#_&lNLr!(>c>Vjno9H>We*WMnkj z?8tJN2}p^upFve3D5|`fpHmhjr^{W=gfMvWTHYumo&cXBr>VKAv5_Ir(#ZmRQbNTg ziA5z!RtknN8;v)o@d+}*^_XmK;CBRajV&#V4K2+LH=h!)VnO2aivD2afa%@LD{jpQ E0D>JfaR2}S diff --git a/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Invoice.list.1.json b/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Invoice.list.1.json index 940214314c95778d1d0d1e35df5171389560ec7e..6f4ce5c9f43545de5921935bcaa3f2bff83bf860 100644 GIT binary patch delta 181 zcmX>gc0g=HKO?6B6c|mO!I%Q)nQdlevS!kONgC^LDWCwQ;*!Lo5+y4ILzohy$@c7W xle<_p3d2N95Sk|2Gsgc0g=HKO?89iLtqbsiBea&Pn2>tf#a+AAQHVT^>TUroXjjxviT@?G^0Aq1`GTSnC#BG1;zd+jGJHZzen=ieL*p}0;A3U H1Q{6t$Sypx delta 254 zcmeyb`d@W}3?qlBxv8;{p`p=a6~<6bQ*(1mLt{fDhDb3UHuQT#{H+ zqGY9DXli0?Zea@4>dw1`)703~!r0K#+;Fo$ivkPTTK_RlW)>*fe3UzyQQgeI%+kcz i)CiaLFqflS|AcY#3;y>=Ub`#G!Gp(M~6#6K`FVks3GJo)h8nW diff --git a/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Subscription.save.1.json b/corporate/tests/stripe_fixtures/upgrade_billing_by_invoice:Subscription.save.1.json index 6a2d1c4759d38a422964c2510ad03aea7debd66d..20413b0223bfdfffabfdee6add1b41d15020d68e 100644 GIT binary patch delta 139 zcmaDR@JwJrET;h!7)?y`(1CMwxD*tWl1qz#G!Gp(M~6#6K`FVks3L diff --git a/corporate/tests/stripe_fixtures/upgrade_with_outdated_seat_count:Customer.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_outdated_seat_count:Customer.create.1.json index f92f57d435f674a1f8c6119301bad8c04ebeb18b..a296ccce0687fc65f51d6326ddd9658dd86ba265 100644 GIT binary patch delta 20 WcmZ3_vz}*y2B!fO7;ZHD#|i*EAqCC= delta 20 bcmZ3_vz}*y2B)csvAKn*p|R;k!+)#*J(dOb diff --git a/corporate/tests/stripe_fixtures/upgrade_with_outdated_seat_count:Customer.retrieve.1.json b/corporate/tests/stripe_fixtures/upgrade_with_outdated_seat_count:Customer.retrieve.1.json index 3f7aacd6b7c53938b86d05961fbd4d6343267d79..c4018944790148c808c57bd89333e9b24e9a4901 100644 GIT binary patch delta 146 zcmbQFHc4%Q2B!fO7;ZGQ=795zCYN$VA@Oc-D8hNhlbJY`;XI?wdYrK^Vkym*0a&C1NZn%&R*W@|e>YD`4BXpT=z9DGE2mq_Q BA`Som diff --git a/corporate/tests/stripe_fixtures/upgrade_with_outdated_seat_count:Subscription.create.1.json b/corporate/tests/stripe_fixtures/upgrade_with_outdated_seat_count:Subscription.create.1.json index 754ab614d3e7ced71d56c7aa115fa14144ddfac8..0b781e6f4d2b0707d20036a120402fa665786898 100644 GIT binary patch delta 143 zcmew$@IhcgDyIPy7){LcK;rC|)`!U$>u@P3C?%H`6{Y5t#22I%W#*^E7ndX!l_*&$ o7{XK;P3C00jxb>JOGa)+IM-zJU#1dfByJVkB!sNdWKoW200&7WZ~y=R delta 143 zcmew$@IhcgDyON5vAKn*p|R=2JP#z!erbJEb5mm@L!gWfmx6*)a%oXfYFoTF#_Mnc%r?Jd '"fingerprint": "[A-Za-z0-9]{16}"': '"fingerprint": "NORMALIZED%06d"', '"number": "[A-Za-z0-9]{7}-[A-Za-z0-9]{4}"': '"number": "NORMALI-%04d"', '"address": "[A-Za-z0-9]{9}-test_[A-Za-z0-9]{12}"': '"address": "000000000-test_NORMALIZED%02d"', + # Does not preserve relative ordering of the timestamps, nor any + # coordination with the timestamps in setUp mocks (e.g. Plan.created). + ': (1[5-9][0-9]{8})(?![0-9-])': '1%09d', }) normalized_values = {pattern: {} @@ -147,8 +150,10 @@ def normalize_fixture_data(decorated_function: CallableT, keep: List[str]=[]) -> file_content = re.sub(r'[0-3]\d [A-Z][a-z]{2} 20[1-2]\d', 'NORMALIZED DATE', file_content) # IP addresses file_content = re.sub(r'"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"', '"0.0.0.0"', file_content) + # Even normalized timestamps vary a lot run to run, so suppress + # timestamp differences entirely unless we explicitly ask to keep them if "timestamps" not in keep: - file_content = re.sub(r': 1[5-9][0-9]{8},', ': 1000000000,', file_content) + file_content = re.sub(r': 10000000\d{2}(?=[,$])', ': 1000000000', file_content) with open(fixture_file, "w") as f: f.write(file_content)