From 27bbb1ef95f8c57ae0833888576ece3904505c70 Mon Sep 17 00:00:00 2001 From: nicoco Date: Mon, 30 Dec 2024 14:22:40 +0100 Subject: [PATCH] xep_0425: add missing 'id' attribute to 'Moderate' stanza plugin --- slixmpp/plugins/xep_0425/stanza.py | 2 +- tests/test_stanza_xep_0425.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/slixmpp/plugins/xep_0425/stanza.py b/slixmpp/plugins/xep_0425/stanza.py index 9fabda20..279fee33 100644 --- a/slixmpp/plugins/xep_0425/stanza.py +++ b/slixmpp/plugins/xep_0425/stanza.py @@ -19,7 +19,7 @@ class Moderate(ElementBase): namespace = NS name = 'moderate' plugin_attrib = 'moderate' - interfaces = {'reason'} + interfaces = {'id', 'reason'} sub_interfaces = {'reason'} diff --git a/tests/test_stanza_xep_0425.py b/tests/test_stanza_xep_0425.py index 46192492..b9d47673 100644 --- a/tests/test_stanza_xep_0425.py +++ b/tests/test_stanza_xep_0425.py @@ -21,12 +21,12 @@ class TestModeration(SlixTest): self.check(iq, """ - + R - """, use_values=False) + """) def testModerated(self): message = Message()