Skip to content

Commit 2d71cbe

Browse files
committed
feat(test): add assertions per item
1 parent c9df085 commit 2d71cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/info_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ def test_extra_agents():
252252
response = info.extra_agents(user="0xd42f2bB0e06455eDB652e27b7374FC2bDa8448ee")
253253
assert isinstance(response, list), "The response should be a list"
254254
# Extra agents should contain agent information
255-
if len(response) > 0:
256-
agent = response[0]
255+
assert len(response) > 0, "The response should contain at least one agent"
256+
for agent in response:
257257
assert "name" in agent, "Each agent should have a 'name' field"
258258
assert "address" in agent, "Each agent should have an 'address' field"
259259
assert "validUntil" in agent, "Each agent should have a 'validUntil' field"

0 commit comments

Comments
 (0)