changeset 4107:bc7d45dedeb0

backend: rename `SatRosterProtocol` to `LiberviaRosterProtocol`
author Goffi <goffi@goffi.org>
date Fri, 30 Jun 2023 15:11:05 +0200
parents 4ad982a0358f
children 238e305f2306
files libervia/backend/core/xmpp.py libervia/backend/test/helpers.py libervia/backend/test/test_core_xmpp.py
diffstat 3 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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())
--- 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):