comparison tests/unit/test_ap-gateway.py @ 4071:4b842c1fb686

refactoring: renamed `sat` package to `libervia.backend`
author Goffi <goffi@goffi.org>
date Fri, 02 Jun 2023 11:49:51 +0200
parents 524856bd7b19
children 716dd791be46
comparison
equal deleted inserted replaced
4070:d10748475025 4071:4b842c1fb686
32 from twisted.words.protocols.jabber import jid 32 from twisted.words.protocols.jabber import jid
33 from twisted.words.protocols.jabber.error import StanzaError 33 from twisted.words.protocols.jabber.error import StanzaError
34 from twisted.words.xish import domish 34 from twisted.words.xish import domish
35 from wokkel import pubsub, rsm 35 from wokkel import pubsub, rsm
36 36
37 from sat.core import exceptions 37 from libervia.backend.core import exceptions
38 from sat.core.constants import Const as C 38 from libervia.backend.core.constants import Const as C
39 from sat.memory.sqla_mapping import SubscriptionState 39 from libervia.backend.memory.sqla_mapping import SubscriptionState
40 from sat.plugins import plugin_comp_ap_gateway 40 from libervia.backend.plugins import plugin_comp_ap_gateway
41 from sat.plugins.plugin_comp_ap_gateway import constants as ap_const 41 from libervia.backend.plugins.plugin_comp_ap_gateway import constants as ap_const
42 from sat.plugins.plugin_comp_ap_gateway import TYPE_ACTOR 42 from libervia.backend.plugins.plugin_comp_ap_gateway import TYPE_ACTOR
43 from sat.plugins.plugin_comp_ap_gateway.http_server import HTTPServer 43 from libervia.backend.plugins.plugin_comp_ap_gateway.http_server import HTTPServer
44 from sat.plugins.plugin_xep_0277 import NS_ATOM 44 from libervia.backend.plugins.plugin_xep_0277 import NS_ATOM
45 from sat.plugins.plugin_xep_0422 import NS_FASTEN 45 from libervia.backend.plugins.plugin_xep_0422 import NS_FASTEN
46 from sat.plugins.plugin_xep_0424 import NS_MESSAGE_RETRACT 46 from libervia.backend.plugins.plugin_xep_0424 import NS_MESSAGE_RETRACT
47 from sat.plugins.plugin_xep_0465 import NS_PPS 47 from libervia.backend.plugins.plugin_xep_0465 import NS_PPS
48 from sat.tools import xml_tools 48 from libervia.backend.tools import xml_tools
49 from sat.tools.common import uri as xmpp_uri 49 from libervia.backend.tools.common import uri as xmpp_uri
50 from sat.tools.utils import xmpp_date 50 from libervia.backend.tools.utils import xmpp_date
51 51
52 52
53 TEST_BASE_URL = "https://example.org" 53 TEST_BASE_URL = "https://example.org"
54 TEST_USER = "test_user" 54 TEST_USER = "test_user"
55 TEST_AP_ACCOUNT = f"{TEST_USER}@example.org" 55 TEST_AP_ACCOUNT = f"{TEST_USER}@example.org"