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 8, 2021
1 parent 6fd7449 commit 7d3bad5
Showing 1 changed file with 2 additions and 1 deletion.
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 7d3bad5

Please sign in to comment.