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
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/notify.py')
-rw-r--r--test/lib/notify.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/lib/notify.py b/test/lib/notify.py
new file mode 100644
index 000000000..f14100af3
--- /dev/null
+++ b/test/lib/notify.py
@@ -0,0 +1,17 @@
+# mock notify module
+
+notifications = []
+
+def notify(event, jid, account, parameters, advanced_notif_num = None):
+ notifications.append((event, jid, account, parameters, advanced_notif_num))
+
+def get_advanced_notification(event, account, contact):
+ return None
+
+def get_show_in_roster(event, account, contact, session = None):
+ return True
+
+def get_show_in_systray(event, account, contact, type_ = None):
+ return True
+
+# vim: se ts=3: \ No newline at end of file