Skip to content

Commit

Permalink
add test case for updateHandle
Browse files Browse the repository at this point in the history
  • Loading branch information
notjuliet committed Jan 9, 2025
1 parent 1f16fa5 commit 649f8d3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,3 +493,19 @@ async def test_deleteSession(s, pds_host):
headers={"Authorization": "Bearer " + refresh_token},
) as r:
assert r.status != 200

async def test_updateHandle(s, pds_host, auth_headers):
async with s.post(
pds_host + "/xrpc/com.atproto.identity.updateHandle",
headers=auth_headers,
json={ "handle": "juliet.test" },
) as r:
assert r.status == 200

async with s.get(
pds_host + "/xrpc/com.atproto.repo.describeRepo",
params={ "repo": TEST_DID },
) as r:
assert r.status == 200
r = await r.json()
assert r["handle"] == "juliet.test"

0 comments on commit 649f8d3

Please sign in to comment.