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:
parent
f160577a65
commit
6d1e942f43
1 changed files with 2710 additions and 34 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue