Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Archento committed Jan 14, 2025
1 parent c29372a commit 95e0e8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class TestContextSendMethods(unittest.IsolatedAsyncioTestCase):
def setUp(self):
self.identity = Identity.generate()
self.policy = AlmanacApiRegistrationPolicy(
self.identity, almanac_api=self.MOCKED_ALMANAC_API, max_retries=1
almanac_api=self.MOCKED_ALMANAC_API, max_retries=1
)

@aioresponses()
Expand All @@ -97,6 +97,7 @@ async def test_registration_success(self, mocked_responses):

await self.policy.register(
agent_identifier=self.identity.address,
identity=self.identity,
protocols=TEST_PROTOCOLS,
endpoints=TEST_ENDPOINTS,
)
Expand All @@ -109,6 +110,7 @@ async def test_registration_failure(self, mocked_responses):
with pytest.raises(ClientResponseError):
await self.policy.register(
agent_identifier=self.identity.address,
identity=self.identity,
protocols=TEST_PROTOCOLS,
endpoints=TEST_ENDPOINTS,
)
Expand All @@ -121,6 +123,7 @@ async def test_registration_server_failure(self, mocked_responses):
with pytest.raises(ClientResponseError):
await self.policy.register(
agent_identifier=self.identity.address,
identity=self.identity,
protocols=TEST_PROTOCOLS,
endpoints=TEST_ENDPOINTS,
)

0 comments on commit 95e0e8f

Please sign in to comment.