summaryrefslogtreecommitdiff
path: root/tests/test_stanza_presence.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-19 18:51:50 +0100
committermathieui <mathieui@mathieui.net>2021-02-19 19:03:46 +0100
commita397cc3a7d824d7c5bdfbe316b78deb17e190ecd (patch)
treed18c9e4bccc85d3c5770515966ce9866f8bc39dc /tests/test_stanza_presence.py
parent626bf5ff8ac5bc4c8758cd437e52f4e7c86ec179 (diff)
downloadslixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.tar.gz
slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.tar.bz2
slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.tar.xz
slixmpp-a397cc3a7d824d7c5bdfbe316b78deb17e190ecd.zip
tests: fix prerequisites for stanza tests
Diffstat (limited to 'tests/test_stanza_presence.py')
-rw-r--r--tests/test_stanza_presence.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_stanza_presence.py b/tests/test_stanza_presence.py
index 7bb41b3a..ff0f4fb2 100644
--- a/tests/test_stanza_presence.py
+++ b/tests/test_stanza_presence.py
@@ -2,6 +2,12 @@ import unittest
import slixmpp
from slixmpp.test import SlixTest
+from slixmpp.plugins.xep_0172 import UserNick
+from slixmpp.xmlstream import register_stanza_plugin
+from slixmpp.stanza import Presence
+
+register_stanza_plugin(Presence, UserNick)
+
class TestPresenceStanzas(SlixTest):
def testPresenceShowRegression(self):