summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/debian/tests/python-gi-test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
commit9b6d8e63db85c30007b463e91f91a791969fa83f (patch)
tree0899af51d73c1bf986f73ae39a03c4436083018a /subprojects/libhandy/debian/tests/python-gi-test
parentInitial commit. (diff)
downloadgnome-control-center-upstream.tar.xz
gnome-control-center-upstream.zip
Adding upstream version 1:3.38.4.upstream/1%3.38.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'subprojects/libhandy/debian/tests/python-gi-test')
-rwxr-xr-xsubprojects/libhandy/debian/tests/python-gi-test13
1 files changed, 13 insertions, 0 deletions
diff --git a/subprojects/libhandy/debian/tests/python-gi-test b/subprojects/libhandy/debian/tests/python-gi-test
new file mode 100755
index 0000000..dfb1bf3
--- /dev/null
+++ b/subprojects/libhandy/debian/tests/python-gi-test
@@ -0,0 +1,13 @@
+#!/usr/bin/python3
+#
+# Make sure gobject introspection works
+
+import gi
+
+gi.require_version('Handy', '1')
+from gi.repository import Handy
+
+group = Handy.SwipeGroup()
+
+assert type(group).__name__ == 'SwipeGroup'
+assert group.get_swipeables() == []