diff options
author | mjk <mjk@disroot.org> | 2022-12-07 23:38:43 +0300 |
---|---|---|
committer | mjk <mjk@disroot.org> | 2022-12-08 14:00:56 +0300 |
commit | 753e8345539020c30a9aa86c08516c20574dbc12 (patch) | |
tree | 2512887ab0fbe274baed751c2b7ec6614e8a5e8a /test | |
parent | e65badc75b07bc035b6f743fe27c93b061487a26 (diff) |
refactor: Make xmpp query type handling in open_uri more change-proof
Diffstat (limited to 'test')
-rw-r--r-- | test/no_gui/test_uri_util.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/no_gui/test_uri_util.py b/test/no_gui/test_uri_util.py new file mode 100644 index 000000000..c47b50c9b --- /dev/null +++ b/test/no_gui/test_uri_util.py @@ -0,0 +1,15 @@ +import unittest + +from gajim.common import app # noqa F401 (avoid circular imports) +from gajim.common.const import XmppUriQuery +from gajim.common.helpers import _xmpp_query_type_handlers + + +class Test(unittest.TestCase): + def test_xmpp_query_type_handlers_dict(self): + for t in XmppUriQuery: + self.assertIn(t, _xmpp_query_type_handlers) + + +if __name__ == '__main__': + unittest.main() |