agent: look at current info, its aUEC, feat: pull up notifcations.
This commit is contained in:
@@ -81,3 +81,16 @@ async def test_uex_client_get_user_normalizes_user_payload():
|
||||
result = await client.get_user(authenticated=True)
|
||||
|
||||
assert result == {"status": "ok", "user": {"username": "pilot_hudson"}}
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@respx.mock
|
||||
async def test_uex_client_get_user_notifications_normalizes_payload():
|
||||
respx.get("https://api.uexcorp.space/2.0/user_notifications/").mock(
|
||||
return_value=Response(200, json={"status": "ok", "data": {"id": 7, "message": "Reply waiting", "date_read": 0}})
|
||||
)
|
||||
client = UEXClient("https://api.uexcorp.space/2.0", bearer_token="bearer")
|
||||
|
||||
result = await client.get_user_notifications()
|
||||
|
||||
assert result == {"status": "ok", "notifications": [{"id": 7, "message": "Reply waiting", "date_read": 0}]}
|
||||
|
||||
Reference in New Issue
Block a user