Skip to content

Commit e1ce771

Browse files
authored
Merge pull request #13 from lightsparkdev/feat/umatests
Tweak uma invite tests
2 parents bcddcfe + 0d1488f commit e1ce771

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/example_uma_invites.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919
api_token_id = os.environ.get("LIGHTSPARK_API_TOKEN_CLIENT_ID")
2020
api_token_secret = os.environ.get("LIGHTSPARK_API_TOKEN_CLIENT_SECRET")
21-
base_url = os.environ.get("LIGHTSPARK_EXAMPLE_BASE_URL")
21+
base_url = os.environ.get("LIGHTSPARK_API_ENDPOINT")
22+
vasp_domain = os.environ.get("LIGHTSPARK_UMA_VASP_DOMAIN")
2223

2324
# Let's start by creating a client
2425

@@ -33,7 +34,7 @@
3334

3435
# Create an invitation
3536
invitation = client.create_uma_invitation_with_incentives(
36-
inviter_uma="$alice@testvasp1.com",
37+
inviter_uma=f"$alice@{vasp_domain}",
3738
inviter_phone_number_e164="+11234567890",
3839
inviter_region=lightspark.RegionCode.US,
3940
)
@@ -47,7 +48,7 @@
4748

4849
client.claim_uma_invitation_with_incentives(
4950
invitation_code=invitation.code,
50-
invitee_uma="$bob@testvasp2.com",
51+
invitee_uma=f"$bob@{vasp_domain}",
5152
invitee_phone_number_e164="+520987654321",
5253
invitee_region=lightspark.RegionCode.MX,
5354
)
@@ -61,7 +62,7 @@
6162
print("Claiming the same invitation again...")
6263
client.claim_uma_invitation_with_incentives(
6364
invitation_code=invitation.code,
64-
invitee_uma="$bob@testvasp2.com",
65+
invitee_uma=f"$bob@{vasp_domain}",
6566
invitee_phone_number_e164="+520987654321",
6667
invitee_region=lightspark.RegionCode.MX,
6768
)

0 commit comments

Comments
 (0)