Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

test_stripe: Broaden account_name normalization to allow punctuation.

Aman Agrawal98c0419e1adf
diff --git a/corporate/lib/test_stripe_class.py b/corporate/lib/test_stripe_class.py
index 89488a954df..56afdf20370 100644
--- a/corporate/lib/test_stripe_class.py
+++ b/corporate/lib/test_stripe_class.py
@@ -220,7 +220,7 @@ def normalize_fixture_data(decorated_function: CallableT) -> None: # nocoverage
# Don't use (..) notation, since the matched strings may be small integers that will also match
# elsewhere in the file
r'"realm_id": "[0-9]+"': '"realm_id": "1"',
- r'"account_name": "[\w\s]+"': '"account_name": "NORMALIZED"',
+ r'"account_name": "[^"]+"': '"account_name": "NORMALIZED"',
}
# We'll replace cus_D7OT2jf5YAtZQ2 with something like cus_NORMALIZED0001