plugin XEP-0166: support all content actions + fixes:
- all content actions are now handled - XEP-0167: the new contents of an offered SDP are added with a single content-add, the contents sharing a single transport are bundled (XEP-0338) - XEP-0167: the generated SDP declares the BUNDLE group of its own contents - XEP-0176: one transport-info IQ per content. ICE data are keyed by content names. - fix session-level ICE attributes and fingerprint
This commit is contained in:
parent
0c6f852ce9
commit
ab26a56c1d
1 changed files with 1804 additions and 261 deletions
|
|
@ -251,7 +251,7 @@ class TestXEP0176:
|
|||
assert returned_transport_elt.toXml() == expected_transport_elt.toXml()
|
||||
|
||||
@ed
|
||||
async def test_ice_candidates_add(self, host, client):
|
||||
async def test_ice_candidates_add(self, host, client, monkeypatch):
|
||||
"""local new ICE candidates are added, IQ is sent, bridge signal emitted"""
|
||||
xep_0176 = XEP_0176(host)
|
||||
|
||||
|
|
@ -278,8 +278,9 @@ class TestXEP0176:
|
|||
}
|
||||
|
||||
mock_session = self.create_mock_session(content_name)
|
||||
xep_0176._j.get_session = MagicMock(return_value=mock_session)
|
||||
xep_0176._j.build_action = MagicMock()
|
||||
get_session = MagicMock(return_value=mock_session)
|
||||
monkeypatch.setattr(xep_0176._j, "get_session", get_session)
|
||||
monkeypatch.setattr(xep_0176._j, "build_action", MagicMock())
|
||||
iq_elt = AsyncMock()
|
||||
xep_0176._j.build_action.return_value = (iq_elt, None)
|
||||
xep_0176.host.bridge.ice_restart = MagicMock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue