Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormjk <mjk@disroot.org>2022-12-07 23:38:43 +0300
committermjk <mjk@disroot.org>2022-12-08 14:00:56 +0300
commit753e8345539020c30a9aa86c08516c20574dbc12 (patch)
tree2512887ab0fbe274baed751c2b7ec6614e8a5e8a /test
parente65badc75b07bc035b6f743fe27c93b061487a26 (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.py15
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()