diff options
author | Link Mauve <linkmauve@linkmauve.fr> | 2021-02-13 20:25:57 +0100 |
---|---|---|
committer | Link Mauve <linkmauve@linkmauve.fr> | 2021-02-13 20:25:57 +0100 |
commit | f50dfd6644aa004ae0c6cad41cf131273bc49663 (patch) | |
tree | de932679a63d2d377842d579fe5d48696c23013b /tests/test_stream_xep_0047.py | |
parent | ace82c9bc47df97344952e71cd59ee99114abbb0 (diff) | |
parent | bbcc977d1d87b564f766cf973de078884d3be845 (diff) | |
download | slixmpp-f50dfd6644aa004ae0c6cad41cf131273bc49663.tar.gz slixmpp-f50dfd6644aa004ae0c6cad41cf131273bc49663.tar.bz2 slixmpp-f50dfd6644aa004ae0c6cad41cf131273bc49663.tar.xz slixmpp-f50dfd6644aa004ae0c6cad41cf131273bc49663.zip |
Merge branch 'remove-more-extra-args' into 'master'
More cleanup of extra args, types, docs, and API
See merge request poezio/slixmpp!126
Diffstat (limited to 'tests/test_stream_xep_0047.py')
-rw-r--r-- | tests/test_stream_xep_0047.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test_stream_xep_0047.py b/tests/test_stream_xep_0047.py index f7276c0f..53225df5 100644 --- a/tests/test_stream_xep_0047.py +++ b/tests/test_stream_xep_0047.py @@ -14,7 +14,7 @@ class TestInBandByteStreams(SlixTest): def tearDown(self): self.stream_close() - def testOpenStream(self): + async def testOpenStream(self): """Test requesting a stream, successfully""" events = [] @@ -25,8 +25,8 @@ class TestInBandByteStreams(SlixTest): self.xmpp.add_event_handler('ibb_stream_start', on_stream_start) - self.xmpp['xep_0047'].open_stream('tester@localhost/receiver', - sid='testing') + await self.xmpp['xep_0047'].open_stream('tester@localhost/receiver', + sid='testing') self.send(""" <iq type="set" to="tester@localhost/receiver" id="1"> @@ -45,7 +45,7 @@ class TestInBandByteStreams(SlixTest): self.assertEqual(events, ['ibb_stream_start']) - def testAysncOpenStream(self): + async def testAysncOpenStream(self): """Test requesting a stream, aysnc""" events = set() @@ -58,9 +58,9 @@ class TestInBandByteStreams(SlixTest): self.xmpp.add_event_handler('ibb_stream_start', on_stream_start) - self.xmpp['xep_0047'].open_stream('tester@localhost/receiver', - sid='testing', - callback=stream_callback) + await self.xmpp['xep_0047'].open_stream('tester@localhost/receiver', + sid='testing', + callback=stream_callback) self.send(""" <iq type="set" to="tester@localhost/receiver" id="1"> |