Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro-Morales committed Jun 29, 2023
1 parent fdf39a4 commit 00000a1
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/test_agent_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,6 @@ def test_alamanc_failed_registration(self):
"Shouldn't be registered on alamanac",
)

def test_name_service_ownership(self):
agent = Agent()
fund_agent_if_low(agent.wallet.address())

ownership_msg = agent._service_contract._get_ownership_msg(
agent.name, str(agent.wallet.address())
)

transaction = agent._service_contract.execute(ownership_msg, agent.wallet)

transaction.wait_to_complete()

is_owner = agent._service_contract.is_owner(
agent.name, str(agent.wallet.address())
)

self.assertEqual(is_owner, True, "Domain ownership failed")

def test_name_service_failed_ownership(self):
agent = Agent()
Expand Down Expand Up @@ -110,14 +93,10 @@ def test_registration(self):
)
self.assertEqual(is_owner, False)

ownership_msg = agent._service_contract._get_ownership_msg(
agent.name, str(agent.wallet.address())
)
registration_msg = agent._service_contract._get_registration_msg(
agent.name, agent.address
)

agent._service_contract.execute(ownership_msg, agent.wallet).wait_to_complete()
agent._service_contract.execute(
registration_msg, agent.wallet
).wait_to_complete()
Expand Down

0 comments on commit 00000a1

Please sign in to comment.