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: Convert "".format to Python 3.6 f-string.

Anders Kaseorgde1df81ef601
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index 5674e375653..56b53d6676e 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -497,7 +497,7 @@ class StripeTestCase(ZulipTestCase):
stripe_session_dict["setup_intent"] = stripe_setup_intent.id
event_payload = {
- "id": "evt_{}".format(get_random_string(24)),
+ "id": f"evt_{get_random_string(24)}",
"object": "event",
"data": {"object": stripe_session_dict},
"type": "checkout.session.completed",