summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2019-01-31 11:34:01 +0100
committerMilan Crha <mcrha@redhat.com>2019-01-31 11:34:01 +0100
commitbe808166e33ca139eb3da328669a8119782f28f1 (patch)
tree6bd6b1d9b6919607ef374f2dcf54f82a6425d99d
parent86e57eb02171f2489be0b9cc4a949565f960399c (diff)
downloadlibical-git-be808166e33ca139eb3da328669a8119782f28f1.tar.gz
[libical-glib] Add ICalGLib version requirement to python tests
To avoid runtime warning about it missing.
-rwxr-xr-xsrc/test/libical-glib/array.py4
-rwxr-xr-xsrc/test/libical-glib/attach.py4
-rwxr-xr-xsrc/test/libical-glib/component.py4
-rwxr-xr-xsrc/test/libical-glib/comprehensive.py4
-rwxr-xr-xsrc/test/libical-glib/duration-type.py4
-rwxr-xr-xsrc/test/libical-glib/error.py4
-rwxr-xr-xsrc/test/libical-glib/parameter.py4
-rwxr-xr-xsrc/test/libical-glib/period-type.py4
-rwxr-xr-xsrc/test/libical-glib/property.py4
-rwxr-xr-xsrc/test/libical-glib/recurrence-type.py4
-rwxr-xr-xsrc/test/libical-glib/timezone.py4
-rwxr-xr-xsrc/test/libical-glib/value.py4
12 files changed, 48 insertions, 0 deletions
diff --git a/src/test/libical-glib/array.py b/src/test/libical-glib/array.py
index cc7cc758..074d4cde 100755
--- a/src/test/libical-glib/array.py
+++ b/src/test/libical-glib/array.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
import sys
from gi.repository import ICalGLib
from sys import getsizeof
diff --git a/src/test/libical-glib/attach.py b/src/test/libical-glib/attach.py
index dda1f860..933274b3 100755
--- a/src/test/libical-glib/attach.py
+++ b/src/test/libical-glib/attach.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
dummy_url = "https://people.gnome.org/~engagement/logos/GnomeLogoVertical.svg";
diff --git a/src/test/libical-glib/component.py b/src/test/libical-glib/component.py
index 0680c861..ef28fddf 100755
--- a/src/test/libical-glib/component.py
+++ b/src/test/libical-glib/component.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
event_str1 = \
diff --git a/src/test/libical-glib/comprehensive.py b/src/test/libical-glib/comprehensive.py
index 591cc73b..bec4500c 100755
--- a/src/test/libical-glib/comprehensive.py
+++ b/src/test/libical-glib/comprehensive.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
event_str1 = \
diff --git a/src/test/libical-glib/duration-type.py b/src/test/libical-glib/duration-type.py
index feb34470..8e2f8dca 100755
--- a/src/test/libical-glib/duration-type.py
+++ b/src/test/libical-glib/duration-type.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
length = 1000000000;
diff --git a/src/test/libical-glib/error.py b/src/test/libical-glib/error.py
index e25c3df6..6a332481 100755
--- a/src/test/libical-glib/error.py
+++ b/src/test/libical-glib/error.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
message = "This is a stinky error!";
diff --git a/src/test/libical-glib/parameter.py b/src/test/libical-glib/parameter.py
index ffbb6f74..f7cdbc10 100755
--- a/src/test/libical-glib/parameter.py
+++ b/src/test/libical-glib/parameter.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
# Test interaction with gchar
diff --git a/src/test/libical-glib/period-type.py b/src/test/libical-glib/period-type.py
index f46b45c2..dd797e4f 100755
--- a/src/test/libical-glib/period-type.py
+++ b/src/test/libical-glib/period-type.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
string = "19970101T183248Z/19970102T071625Z";
diff --git a/src/test/libical-glib/property.py b/src/test/libical-glib/property.py
index cfaaa044..db78148c 100755
--- a/src/test/libical-glib/property.py
+++ b/src/test/libical-glib/property.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
action_property = ICalGLib.Property.new(ICalGLib.PropertyKind.ACKNOWLEDGED_PROPERTY);
diff --git a/src/test/libical-glib/recurrence-type.py b/src/test/libical-glib/recurrence-type.py
index 25065a7e..974cd547 100755
--- a/src/test/libical-glib/recurrence-type.py
+++ b/src/test/libical-glib/recurrence-type.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
weekday = ICalGLib.RecurrenceType.day_day_of_week(0);
diff --git a/src/test/libical-glib/timezone.py b/src/test/libical-glib/timezone.py
index bbf1b730..7a378577 100755
--- a/src/test/libical-glib/timezone.py
+++ b/src/test/libical-glib/timezone.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
import os
diff --git a/src/test/libical-glib/value.py b/src/test/libical-glib/value.py
index 271c3354..625a593f 100755
--- a/src/test/libical-glib/value.py
+++ b/src/test/libical-glib/value.py
@@ -18,6 +18,10 @@
#
###############################################################################
+import gi
+
+gi.require_version('ICalGLib', '3.0')
+
from gi.repository import ICalGLib
kind = ICalGLib.ValueKind.ATTACH_VALUE;