# HG changeset patch # User Goffi # Date 1688130665 -7200 # Node ID bc7d45dedeb0d707dff5b1a8ed644620f4f76bec # Parent 4ad982a0358f92d55963d4cdee332ad40760d471 backend: rename `SatRosterProtocol` to `LiberviaRosterProtocol` diff -r 4ad982a0358f -r bc7d45dedeb0 libervia/backend/core/xmpp.py --- a/libervia/backend/core/xmpp.py Fri Jun 30 15:10:05 2023 +0200 +++ b/libervia/backend/core/xmpp.py Fri Jun 30 15:11:05 2023 +0200 @@ -970,7 +970,7 @@ self.messageProt = SatMessageProtocol(self.host_app) self.messageProt.setHandlerParent(self) - self.roster = SatRosterProtocol(self.host_app) + self.roster = LiberviaRosterProtocol(self.host_app) self.roster.setHandlerParent(self) self.presence = SatPresenceProtocol(self.host_app) @@ -1422,7 +1422,7 @@ failure_.trap(exceptions.CancelError) -class SatRosterProtocol(xmppim.RosterClientProtocol): +class LiberviaRosterProtocol(xmppim.RosterClientProtocol): def __init__(self, host): xmppim.RosterClientProtocol.__init__(self) diff -r 4ad982a0358f -r bc7d45dedeb0 libervia/backend/test/helpers.py --- a/libervia/backend/test/helpers.py Fri Jun 30 15:10:05 2023 +0200 +++ b/libervia/backend/test/helpers.py Fri Jun 30 15:11:05 2023 +0200 @@ -31,7 +31,7 @@ from .constants import Const as C from wokkel.xmppim import RosterItem from wokkel.generic import parseXml -from libervia.backend.core.xmpp import SatRosterProtocol +from libervia.backend.core.xmpp import LiberviaRosterProtocol from libervia.backend.memory.memory import Params, Memory from twisted.trial.unittest import FailTest from twisted.trial import unittest @@ -351,11 +351,11 @@ return True -class FakeRosterProtocol(SatRosterProtocol): +class FakeRosterProtocol(LiberviaRosterProtocol): """This class is used by FakeClient (one instance per profile)""" def __init__(self, host, parent): - SatRosterProtocol.__init__(self, host) + LiberviaRosterProtocol.__init__(self, host) self.parent = parent self._jids = {} self.add_item(parent.jid.userhostJID()) diff -r 4ad982a0358f -r bc7d45dedeb0 libervia/backend/test/test_core_xmpp.py --- a/libervia/backend/test/test_core_xmpp.py Fri Jun 30 15:10:05 2023 +0200 +++ b/libervia/backend/test/test_core_xmpp.py Fri Jun 30 15:11:05 2023 +0200 @@ -57,11 +57,11 @@ self.message.onMessage(stanza) -class SatRosterProtocolTest(unittest.TestCase): +class LiberviaRosterProtocolTest(unittest.TestCase): def setUp(self): self.host = helpers.FakeSAT() - self.roster = xmpp.SatRosterProtocol(self.host) + self.roster = xmpp.LiberviaRosterProtocol(self.host) self.roster.parent = helpers.FakeClient(self.host) def test_register_item(self):