Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_stripe: Convert NamedTuple to dataclass.
Anders Kaseorg9756ac0db786
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex 9318ef441f3..4aa853d7707 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -4,6 +4,7 @@ import osimport randomimport reimport sys+from dataclasses import dataclassfrom datetime import datetime, timedelta, timezonefrom decimal import Decimalfrom functools import wraps@@ -13,7 +14,6 @@ from typing import (Dict,List,Mapping,- NamedTuple,Optional,Sequence,Tuple,@@ -2834,7 +2834,8 @@ class StripeTest(StripeTestCase):invoices = self.create_invoices(customer, num_invoices)return realm, customer, plan, invoices- class Row(NamedTuple):+ @dataclass+ class Row:realm: Realmexpected_plan_type: intplan: Optional[CustomerPlan]