We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9eedb1 commit c2b8a36Copy full SHA for c2b8a36
tests/test_protocols_io_api.py
@@ -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