XEP-0231: API changes

- ``get_bob`` and ``set_bob`` are now coroutines.
- ``del_bob`` returns a Future.
This commit is contained in:
mathieui
2021-02-14 12:02:13 +01:00
parent ab87b25030
commit 9947d3db85
3 changed files with 64 additions and 22 deletions

View File

@@ -20,7 +20,7 @@ class TestBOB(SlixIntegration):
async def test_bob(self):
"""Check we can send and receive a BOB."""
cid = self.clients[0]['xep_0231'].set_bob(
cid = await self.clients[0]['xep_0231'].set_bob(
self.data,
'image/jpeg',
)