[conduit/tracker: 178/179] Add tracker contacts and calendar to soup tests
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit/tracker: 178/179] Add tracker contacts and calendar to soup tests
- Date: Tue, 9 Jun 2009 06:48:15 -0400 (EDT)
commit c93080db2a214c5eea75b768bb2563cab3dbedc3
Author: John Carr <john carr unrouted co uk>
Date: Tue Jun 9 11:37:22 2009 +0100
Add tracker contacts and calendar to soup tests
---
test/soup/modules/tracker.py | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/test/soup/modules/tracker.py b/test/soup/modules/tracker.py
new file mode 100644
index 0000000..5dcb02e
--- /dev/null
+++ b/test/soup/modules/tracker.py
@@ -0,0 +1,27 @@
+
+import soup
+import soup.modules
+
+from soup.data.contact import ContactWrapper
+from soup.data.event import EventWrapper
+
+import conduit.modules.TrackerModule.TrackerModule as TrackerModule
+
+class TrackerContacts(soup.modules.ModuleWrapper):
+
+ klass = TrackerModule.TrackerContacts
+ dataclass = ContactWrapper
+
+ def create_dataprovider(self):
+ return self.klass()
+
+
+class TrackerCalendar(soup.modules.ModuleWrapper):
+
+ klass = TrackerContacts.TrackerCalendar
+ dataclass = EventWrapper
+
+ def create_dataprovider(self):
+ return self.klass()
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]