black reformatting.
This commit is contained in:
parent
b0a94124d2
commit
7b3c8d2ba8
11 changed files with 31 additions and 39 deletions
|
|
@ -196,7 +196,7 @@ class TestEmailGatewayComponent:
|
|||
],
|
||||
}
|
||||
},
|
||||
uid=None
|
||||
uid=None,
|
||||
)
|
||||
|
||||
@ed
|
||||
|
|
@ -206,10 +206,7 @@ class TestEmailGatewayComponent:
|
|||
email_gw.client.jid = jid.JID("gateway.example.org")
|
||||
email_gw.storage = MagicMock()
|
||||
email_gw.storage.get = AsyncMock(
|
||||
return_value=Credentials(
|
||||
user_email="user@example.org",
|
||||
**TEST_CREDENTIALS_KW
|
||||
)
|
||||
return_value=Credentials(user_email="user@example.org", **TEST_CREDENTIALS_KW)
|
||||
)
|
||||
|
||||
from_jid = jid.JID("user@example.org")
|
||||
|
|
@ -266,7 +263,7 @@ class TestEmailGatewayComponent:
|
|||
{"": "Hello, world!\n"},
|
||||
None,
|
||||
extra={"headers": {"keywords": "test, example", "urgency": "high"}},
|
||||
uid=None
|
||||
uid=None,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -225,7 +225,8 @@ class TestXEP0176:
|
|||
transport_elt = await xep_0176.jingle_session_init(client, session, content_name)
|
||||
|
||||
expected_transport_elt = xep_0176.build_transport(
|
||||
session["contents"][content_name]["transport_data"]["local_ice_data"], add_trickle=True
|
||||
session["contents"][content_name]["transport_data"]["local_ice_data"],
|
||||
add_trickle=True,
|
||||
)
|
||||
|
||||
assert transport_elt.toXml() == expected_transport_elt.toXml()
|
||||
|
|
@ -245,7 +246,8 @@ class TestXEP0176:
|
|||
)
|
||||
|
||||
expected_transport_elt = xep_0176.build_transport(
|
||||
session["contents"][content_name]["transport_data"]["local_ice_data"], add_trickle=True
|
||||
session["contents"][content_name]["transport_data"]["local_ice_data"],
|
||||
add_trickle=True,
|
||||
)
|
||||
|
||||
assert returned_transport_elt.toXml() == expected_transport_elt.toXml()
|
||||
|
|
|
|||
|
|
@ -67,9 +67,7 @@ class TestPubsubCache:
|
|||
items_ret.callback(([], {}))
|
||||
client.pubsub_client.items = MagicMock(return_value=items_ret)
|
||||
host.memory.storage.get_pubsub_node.return_value = None
|
||||
host.memory.storage.set_pubsub_node.return_value = PubsubNode(
|
||||
sync_state=None
|
||||
)
|
||||
host.memory.storage.set_pubsub_node.return_value = PubsubNode(sync_state=None)
|
||||
with patch.object(host.plugins["PUBSUB_CACHE"], "cache_node") as cache_node:
|
||||
await host.plugins["XEP-0060"].get_items(
|
||||
client,
|
||||
|
|
|
|||
Loading…
Reference in a new issue