Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix a test which assumes call is a namedtuple.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Apr 9, 2021
1 parent a7d8937 commit 444e4a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/events/test_presence_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ def test_send_local_online_presence_to_with_module(self):
self.hs.get_federation_transport_client().send_transaction.call_args_list
)
for call in calls:
federation_transaction = call.args[0] # type: Transaction
call_args = call[0]
federation_transaction = call_args[0] # type: Transaction

# Get the sent EDUs in this transaction
edus = federation_transaction.get_dict()["edus"]
Expand Down
3 changes: 2 additions & 1 deletion tests/module_api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def test_send_local_online_presence_to_federation(self):
self.hs.get_federation_transport_client().send_transaction.call_args_list
)
for call in calls:
federation_transaction = call.args[0] # type: Transaction
call_args = call[0]
federation_transaction = call_args[0] # type: Transaction

# Get the sent EDUs in this transaction
edus = federation_transaction.get_dict()["edus"]
Expand Down

0 comments on commit 444e4a2

Please sign in to comment.