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 c9df085 commit 2d71cbeCopy full SHA for 2d71cbe
tests/info_test.py
@@ -252,8 +252,8 @@ def test_extra_agents():
252
response = info.extra_agents(user="0xd42f2bB0e06455eDB652e27b7374FC2bDa8448ee")
253
assert isinstance(response, list), "The response should be a list"
254
# Extra agents should contain agent information
255
- if len(response) > 0:
256
- agent = response[0]
+ assert len(response) > 0, "The response should contain at least one agent"
+ for agent in response:
257
assert "name" in agent, "Each agent should have a 'name' field"
258
assert "address" in agent, "Each agent should have an 'address' field"
259
assert "validUntil" in agent, "Each agent should have a 'validUntil' field"
0 commit comments