refactoring: renamed sat package to libervia.backend
This commit is contained in:
parent
a15648d682
commit
d2685ba11b
14 changed files with 1293 additions and 1293 deletions
|
|
@ -21,9 +21,9 @@ from unittest.mock import MagicMock, AsyncMock
|
|||
from pytest import fixture
|
||||
from twisted.internet import defer
|
||||
from twisted.words.protocols.jabber import jid
|
||||
from sat.core.sat_main import SAT
|
||||
from sat.tools import async_trigger as trigger
|
||||
from sat.core import xmpp
|
||||
from libervia.backend.core.sat_main import SAT
|
||||
from libervia.backend.tools import async_trigger as trigger
|
||||
from libervia.backend.core import xmpp
|
||||
|
||||
|
||||
@fixture(scope="session")
|
||||
|
|
|
|||
|
|
@ -34,20 +34,20 @@ from twisted.words.protocols.jabber.error import StanzaError
|
|||
from twisted.words.xish import domish
|
||||
from wokkel import pubsub, rsm
|
||||
|
||||
from sat.core import exceptions
|
||||
from sat.core.constants import Const as C
|
||||
from sat.memory.sqla_mapping import SubscriptionState
|
||||
from sat.plugins import plugin_comp_ap_gateway
|
||||
from sat.plugins.plugin_comp_ap_gateway import constants as ap_const
|
||||
from sat.plugins.plugin_comp_ap_gateway import TYPE_ACTOR
|
||||
from sat.plugins.plugin_comp_ap_gateway.http_server import HTTPServer
|
||||
from sat.plugins.plugin_xep_0277 import NS_ATOM
|
||||
from sat.plugins.plugin_xep_0422 import NS_FASTEN
|
||||
from sat.plugins.plugin_xep_0424 import NS_MESSAGE_RETRACT
|
||||
from sat.plugins.plugin_xep_0465 import NS_PPS
|
||||
from sat.tools import xml_tools
|
||||
from sat.tools.common import uri as xmpp_uri
|
||||
from sat.tools.utils import xmpp_date
|
||||
from libervia.backend.core import exceptions
|
||||
from libervia.backend.core.constants import Const as C
|
||||
from libervia.backend.memory.sqla_mapping import SubscriptionState
|
||||
from libervia.backend.plugins import plugin_comp_ap_gateway
|
||||
from libervia.backend.plugins.plugin_comp_ap_gateway import constants as ap_const
|
||||
from libervia.backend.plugins.plugin_comp_ap_gateway import TYPE_ACTOR
|
||||
from libervia.backend.plugins.plugin_comp_ap_gateway.http_server import HTTPServer
|
||||
from libervia.backend.plugins.plugin_xep_0277 import NS_ATOM
|
||||
from libervia.backend.plugins.plugin_xep_0422 import NS_FASTEN
|
||||
from libervia.backend.plugins.plugin_xep_0424 import NS_MESSAGE_RETRACT
|
||||
from libervia.backend.plugins.plugin_xep_0465 import NS_PPS
|
||||
from libervia.backend.tools import xml_tools
|
||||
from libervia.backend.tools.common import uri as xmpp_uri
|
||||
from libervia.backend.tools.utils import xmpp_date
|
||||
|
||||
|
||||
TEST_BASE_URL = "https://example.org"
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
from datetime import date, datetime, time, timezone
|
||||
|
||||
import pytest
|
||||
from sat.core import exceptions
|
||||
from libervia.backend.core import exceptions
|
||||
|
||||
from sat.plugins.plugin_xep_0082 import XEP_0082
|
||||
from libervia.backend.plugins.plugin_xep_0082 import XEP_0082
|
||||
|
||||
|
||||
__all__ = [ # pylint: disable=unused-variable
|
||||
|
|
|
|||
|
|
@ -23,11 +23,11 @@ from pytest import fixture
|
|||
from pytest import raises
|
||||
from twisted.words.protocols.jabber import jid
|
||||
|
||||
from sat.plugins.plugin_xep_0166 import XEP_0166
|
||||
from sat.plugins.plugin_xep_0167 import XEP_0167, mapping
|
||||
from sat.plugins.plugin_xep_0167.constants import NS_JINGLE_RTP, NS_JINGLE_RTP_INFO
|
||||
from sat.tools import xml_tools
|
||||
from sat.tools.common import data_format
|
||||
from libervia.backend.plugins.plugin_xep_0166 import XEP_0166
|
||||
from libervia.backend.plugins.plugin_xep_0167 import XEP_0167, mapping
|
||||
from libervia.backend.plugins.plugin_xep_0167.constants import NS_JINGLE_RTP, NS_JINGLE_RTP_INFO
|
||||
from libervia.backend.tools import xml_tools
|
||||
from libervia.backend.tools.common import data_format
|
||||
|
||||
|
||||
@fixture(autouse=True)
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ from unittest.mock import AsyncMock, MagicMock
|
|||
from pytest import fixture
|
||||
from pytest_twisted import ensureDeferred as ed
|
||||
|
||||
from sat.plugins.plugin_xep_0166 import XEP_0166
|
||||
from sat.plugins.plugin_xep_0176 import NS_JINGLE_ICE_UDP, XEP_0176
|
||||
from sat.tools import xml_tools
|
||||
from libervia.backend.plugins.plugin_xep_0166 import XEP_0166
|
||||
from libervia.backend.plugins.plugin_xep_0176 import NS_JINGLE_ICE_UDP, XEP_0176
|
||||
from libervia.backend.tools import xml_tools
|
||||
|
||||
|
||||
@fixture(autouse=True)
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
from twisted.internet import defer
|
||||
from pytest_twisted import ensureDeferred as ed
|
||||
from unittest.mock import MagicMock
|
||||
from sat.plugins.plugin_xep_0215 import XEP_0215
|
||||
from sat.tools import xml_tools
|
||||
from libervia.backend.plugins.plugin_xep_0215 import XEP_0215
|
||||
from libervia.backend.tools import xml_tools
|
||||
from twisted.words.protocols.jabber import jid
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@
|
|||
|
||||
from twisted.words.xish import domish
|
||||
|
||||
from sat.plugins.plugin_xep_0167.constants import NS_JINGLE_RTP
|
||||
from sat.plugins.plugin_xep_0293 import NS_JINGLE_RTP_RTCP_FB, RTCP_FB_KEY, XEP_0293
|
||||
from sat.tools import xml_tools
|
||||
from libervia.backend.plugins.plugin_xep_0167.constants import NS_JINGLE_RTP
|
||||
from libervia.backend.plugins.plugin_xep_0293 import NS_JINGLE_RTP_RTCP_FB, RTCP_FB_KEY, XEP_0293
|
||||
from libervia.backend.tools import xml_tools
|
||||
|
||||
class TestXEP0293:
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
from twisted.words.xish import domish
|
||||
|
||||
from sat.plugins.plugin_xep_0294 import NS_JINGLE_RTP_HDREXT, XEP_0294
|
||||
from sat.tools.xml_tools import parse
|
||||
from libervia.backend.plugins.plugin_xep_0294 import NS_JINGLE_RTP_HDREXT, XEP_0294
|
||||
from libervia.backend.tools.xml_tools import parse
|
||||
|
||||
|
||||
class TestXEP0294:
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
|
||||
from twisted.words.xish import domish
|
||||
|
||||
from sat.plugins.plugin_xep_0320 import NS_JINGLE_DTLS, XEP_0320
|
||||
from sat.tools import xml_tools
|
||||
from libervia.backend.plugins.plugin_xep_0320 import NS_JINGLE_DTLS, XEP_0320
|
||||
from libervia.backend.tools import xml_tools
|
||||
|
||||
|
||||
class TestXEP0320:
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
from twisted.words.xish import domish
|
||||
|
||||
from sat.plugins.plugin_xep_0338 import NS_JINGLE_GROUPING, XEP_0338
|
||||
from sat.tools.xml_tools import parse
|
||||
from libervia.backend.plugins.plugin_xep_0338 import NS_JINGLE_GROUPING, XEP_0338
|
||||
from libervia.backend.tools.xml_tools import parse
|
||||
|
||||
|
||||
class TestXEP0338:
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
from twisted.words.xish import domish
|
||||
|
||||
from sat.plugins.plugin_xep_0339 import NS_JINGLE_RTP_SSMA, XEP_0339
|
||||
from sat.tools.xml_tools import parse
|
||||
from libervia.backend.plugins.plugin_xep_0339 import NS_JINGLE_RTP_SSMA, XEP_0339
|
||||
from libervia.backend.tools.xml_tools import parse
|
||||
|
||||
|
||||
class TestXEP0339:
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
from datetime import datetime, timedelta, timezone
|
||||
|
||||
import pytest
|
||||
from sat.core import exceptions
|
||||
from libervia.backend.core import exceptions
|
||||
try:
|
||||
from sat.plugins.plugin_xep_0373 import XEP_0373, NS_OX
|
||||
from libervia.backend.plugins.plugin_xep_0373 import XEP_0373, NS_OX
|
||||
except exceptions.MissingModule as e:
|
||||
pytest.skip(f"Can't test XEP-0373: {e}", allow_module_level=True)
|
||||
from sat.tools.xmpp_datetime import parse_datetime
|
||||
from libervia.backend.tools.xmpp_datetime import parse_datetime
|
||||
from twisted.words.protocols.jabber import jid
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,14 +20,14 @@ from datetime import datetime, timezone
|
|||
from typing import Callable, cast
|
||||
|
||||
import pytest
|
||||
from sat.core import exceptions
|
||||
from libervia.backend.core import exceptions
|
||||
|
||||
from sat.plugins.plugin_xep_0334 import NS_HINTS
|
||||
from sat.plugins.plugin_xep_0420 import (
|
||||
from libervia.backend.plugins.plugin_xep_0334 import NS_HINTS
|
||||
from libervia.backend.plugins.plugin_xep_0420 import (
|
||||
NS_SCE, XEP_0420, AffixVerificationFailed, ProfileRequirementsNotMet, SCEAffixPolicy,
|
||||
SCECustomAffix, SCEProfile
|
||||
)
|
||||
from sat.tools.xml_tools import ElementParser
|
||||
from libervia.backend.tools.xml_tools import ElementParser
|
||||
from twisted.words.xish import domish
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@
|
|||
from twisted.internet import defer
|
||||
from pytest_twisted import ensureDeferred as ed
|
||||
from unittest.mock import MagicMock, patch
|
||||
from sat.memory.sqla import PubsubNode, SyncState
|
||||
from sat.core.constants import Const as C
|
||||
from libervia.backend.memory.sqla import PubsubNode, SyncState
|
||||
from libervia.backend.core.constants import Const as C
|
||||
|
||||
|
||||
class TestPubsubCache:
|
||||
|
|
|
|||
Loading…
Reference in a new issue