Skip to content

Commit c2b8a36

Browse files
committed
test: add test for features in protocols.io API
1 parent d9eedb1 commit c2b8a36

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_protocols_io_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pytest
2+
from protocols_io_mcp.utils import helpers
3+
4+
@pytest.mark.asyncio
5+
async def test_get_profile():
6+
"""
7+
Test the get profile feature of the protocols.io API.
8+
"""
9+
profile = await helpers.access_protocols_io_resource("GET", "/v3/session/profile")
10+
assert isinstance(profile, dict)
11+
assert "user" in profile
12+
assert "name" in profile["user"]
13+
assert "username" in profile["user"]
14+
assert "affiliation" in profile["user"]

0 commit comments

Comments
 (0)