Mercurial > libervia-backend
diff tests/unit/test_plugin_xep_0420.py @ 3933:cecf45416403
plugin XEP-0373 and XEP-0374: Implementation of OX and OXIM:
GPGME is used as the GPG provider.
rel 374
author | Syndace <me@syndace.dev> |
---|---|
date | Tue, 20 Sep 2022 16:22:18 +0200 |
parents | 8289ac1b34f4 |
children | 4b842c1fb686 |
line wrap: on
line diff
--- a/tests/unit/test_plugin_xep_0420.py Mon Oct 10 15:23:59 2022 +0200 +++ b/tests/unit/test_plugin_xep_0420.py Tue Sep 20 16:22:18 2022 +0200 @@ -20,6 +20,7 @@ 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 @@ </body> </message>""") - with pytest.raises(ValueError): + with pytest.raises(exceptions.ParsingError): XEP_0420.unpack_stanza( unpacking_profile, stanza, @@ -558,5 +559,5 @@ <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)