plugin XEP-0373 and XEP-0374: Implementation of OX and OXIM:

GPGME is used as the GPG provider.

rel 374
This commit is contained in:
Syndace 2022-09-20 16:22:18 +02:00
commit 6d1e942f43

View file

@ -20,6 +20,7 @@ from datetime import datetime, timezone
from typing import Callable, cast
import pytest
from sat.core import exceptions
from sat.plugins.plugin_xep_0334 import NS_HINTS
from sat.plugins.plugin_xep_0420 import (
@ -435,7 +436,7 @@ def test_custom_affixes() -> None: # pylint: disable=missing-function-docstring
</body>
</message>""")
with pytest.raises(ValueError):
with pytest.raises(exceptions.ParsingError):
XEP_0420.unpack_stanza(
unpacking_profile,
stanza,
@ -558,5 +559,5 @@ def test_schema_validation() -> None: # pylint: disable=missing-function-docstr
<unknown-affix unknown-attr="unknown"/>
</envelope>""".encode("utf-8")
with pytest.raises(ValueError):
with pytest.raises(exceptions.ParsingError):
XEP_0420.unpack_stanza(profile, stanza, envelope_serialized)