Skip to content

Commit 3f3af5c

Browse files
authored
fix billing test (#979)
1 parent 12c6388 commit 3f3af5c

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/test_billing_client.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,16 @@ async def test_get_org_billing_information(self, service: MockBilling):
110110
async def test_create_invoice_and_charge_immediately(self, service: MockBilling):
111111
async with ChannelFor([service]) as channel:
112112
client = BillingClient(channel, BILLING_SERVICE_METADATA)
113+
org_id = "foo"
114+
description = "A short description"
115+
org_id_for_branding = "bar"
113116
_: CreateInvoiceAndChargeImmediatelyResponse = await client.create_invoice_and_charge_immediately(
114-
org_id_to_charge="foo",
115-
amount=42.42,
116-
description="A short description.",
117-
org_id_for_branding="bar")
117+
org_id_to_charge=org_id,
118+
amount=OUTSTANDING_BALANCE,
119+
description=description,
120+
org_id_for_branding=org_id_for_branding,
121+
)
122+
assert service.org_id_to_charge == org_id
123+
assert service.description == description
124+
assert service.org_id_for_branding == org_id_for_branding
125+
assert service.amount == OUTSTANDING_BALANCE

0 commit comments

Comments
 (0)