comparison tests/unit/test_plugin_xep_0373.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 3d91d0aa68db
children f1d0cde61af7
comparison
equal deleted inserted replaced
4070:d10748475025 4071:4b842c1fb686
1 from datetime import datetime, timedelta, timezone 1 from datetime import datetime, timedelta, timezone
2 2
3 import pytest 3 import pytest
4 from sat.core import exceptions 4 from libervia.backend.core import exceptions
5 try: 5 try:
6 from sat.plugins.plugin_xep_0373 import XEP_0373, NS_OX 6 from libervia.backend.plugins.plugin_xep_0373 import XEP_0373, NS_OX
7 except exceptions.MissingModule as e: 7 except exceptions.MissingModule as e:
8 pytest.skip(f"Can't test XEP-0373: {e}", allow_module_level=True) 8 pytest.skip(f"Can't test XEP-0373: {e}", allow_module_level=True)
9 from sat.tools.xmpp_datetime import parse_datetime 9 from libervia.backend.tools.xmpp_datetime import parse_datetime
10 from twisted.words.protocols.jabber import jid 10 from twisted.words.protocols.jabber import jid
11 11
12 12
13 a = jid.JID("foo@example.com") 13 a = jid.JID("foo@example.com")
14 b = jid.JID("bar@example.com") 14 b = jid.JID("bar@example.com")