tests (unit): Skip XEP-0373 test if gpg can't be imported
This commit is contained in:
parent
c92762858f
commit
f92c1f2ac6
1 changed files with 6 additions and 2 deletions
|
|
@ -1,8 +1,12 @@
|
|||
from datetime import datetime, timedelta, timezone
|
||||
from sat.plugins.plugin_xep_0373 import XEP_0373, NS_OX
|
||||
from sat.tools.xmpp_datetime import parse_datetime
|
||||
|
||||
import pytest
|
||||
from sat.core import exceptions
|
||||
try:
|
||||
from sat.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 twisted.words.protocols.jabber import jid
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue