mathieui
be6dde17f1
Revert "Replace asyncio.ensure_future() with asyncio.create_task()"
...
This reverts commit bac6a4b2bf2fc98401e0de7168c4a5cf31b08b37.
This is not actually something we want
2021-12-13 21:25:41 +01:00
Emmanuel Gil Peyrot
bac6a4b2bf
Replace asyncio.ensure_future() with asyncio.create_task()
...
The latter function got introduced in Python 3.7, which is conveniently
our MSPV, so let’s use that.
2021-11-18 15:33:03 +01:00
mathieui
f2d7e86fc7
typing: add a bunch of type ignores
...
because this is too smart for mypy and I do not want to rewrite those
things right now.
2021-07-05 22:25:38 +02:00
mathieui
ea7f7d8119
fix: remove asyncio hack in slixtest
2021-07-04 16:01:48 +02:00
mathieui
3e5943f458
xmlstream: do not allow stanzas outside a session
...
except for the bind, obviously
2021-04-08 18:47:51 +02:00
mathieui
9270d1e538
tests: return the coroutine result in run_coro
2021-02-20 12:56:14 +01:00
mathieui
7e3e056e6b
slixtest: add more shortcuts for asyncio workflow
2021-02-20 11:55:46 +01:00
mathieui
ba7e5e417f
slixtest: use the default stream ns instead of jabber:client
2021-02-20 11:24:43 +01:00
mathieui
bbd351e9c1
global: rewrite copyright notice to use comments
2021-02-05 20:46:18 +01:00
mathieui
6c3f26161e
itests: allow pconfig registration with plugins
2021-02-05 20:08:16 +01:00
mathieui
b8f368acf3
Integration tests: parallelize client connects
2020-12-06 18:41:21 +01:00
mathieui
e6d1badb81
CI: Add helper for integration tests
2020-12-04 23:01:54 +01:00
mathieui
a83c00e933
Update test framework to work with new filters
...
(eewww)
2019-12-27 15:27:28 +01:00
Maxime “pep” Buquet
b29bb30eb7
Make generated stanza id truly random
...
Fix long-standing security issues where stanza @id be predictable.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-07-13 14:07:31 +02:00
Emmanuel Gil Peyrot
74ed50e626
Set @id by default on outgoing messages and presences.
...
Respects RFC6120 §8.1.3’s RECOMMENDED.
2019-01-31 16:46:51 +01:00
Florian Klien
d33366badd
fixing deprecation warnings for pytest
2018-10-15 14:59:23 +02:00
Krzysztof Kotlenga
fbc8562779
Remove dead code
...
See 5c769632e8d35ea76990a1de3ab405c57a21482e.
2015-12-15 19:44:29 +01:00
mathieui
acc52fd935
Merge branch 'develop' of https://github.com/fritzy/SleekXMPP into sleek-merge
...
Conflicts:
README.rst
examples/IoT_TestDevice.py
examples/disco_browser.py
setup.py
sleekxmpp/jid.py
sleekxmpp/plugins/google/auth/stanza.py
sleekxmpp/plugins/google/gmail/notifications.py
sleekxmpp/plugins/google/nosave/stanza.py
sleekxmpp/plugins/google/settings/settings.py
sleekxmpp/thirdparty/__init__.py
sleekxmpp/thirdparty/socks.py
sleekxmpp/thirdparty/statemachine.py
sleekxmpp/util/__init__.py
sleekxmpp/xmlstream/xmlstream.py
slixmpp/basexmpp.py
slixmpp/plugins/xep_0004/stanza/form.py
slixmpp/plugins/xep_0009/rpc.py
slixmpp/plugins/xep_0050/adhoc.py
slixmpp/plugins/xep_0065/proxy.py
slixmpp/plugins/xep_0084/stanza.py
slixmpp/plugins/xep_0202/time.py
slixmpp/plugins/xep_0323/sensordata.py
slixmpp/plugins/xep_0325/control.py
slixmpp/plugins/xep_0325/stanza/control.py
slixmpp/roster/single.py
slixmpp/stanza/atom.py
slixmpp/stanza/rootstanza.py
slixmpp/test/slixtest.py
slixmpp/util/sasl/mechanisms.py
slixmpp/version.py
slixmpp/xmlstream/stanzabase.py
tests/test_stanza_xep_0323.py
tests/test_stanza_xep_0325.py
tests/test_stream_xep_0323.py
tests/test_stream_xep_0325.py
2015-10-02 19:00:19 +02:00
mathieui
7f21fdbe26
Fix the test suite
...
(mock transport class missing .close())
2015-08-08 17:34:06 +02:00
Emmanuel Gil Peyrot
d5b1904ebb
Use a full JID for testing.
2015-04-04 16:56:26 +02:00
Emmanuel Gil Peyrot
0ef3fa2703
XMLStream: factorize the highlight function so it can be used in tests as well
2015-03-02 17:10:27 +01:00
mathieui
1e2665df19
Update the test suite.
...
- monkey-patch our own monkey-patched idle_call to run events immediatly
rather than adding them to the event queue, and add a fake transport
with a fake socket.
- remove the test file related to xep_0059 as it relies on blocking
behavior, and comment out one xep_0030 test uses xep_0059
- remove many instances of threading and sleep()s because they do
nothing except waste time and introduce race conditions.
- keep exactly two sleep() in IoT xeps because they rely on timeouts
2015-02-12 12:23:47 +01:00
Emmanuel Gil Peyrot
61f89eef2e
Remove the now useless Queue wrapper in slixmpp.util.
2014-09-28 23:58:46 +02:00
Florent Le Coz
5ab77c7452
Rename to slixmpp
2014-07-17 14:19:04 +02:00