[conduit: 120/138] Skeletal GoogleModule testing



commit 87038dc6489d20285f1ad2710b039b405b892269
Author: John Carr <john carr unrouted co uk>
Date:   Wed May 6 09:43:27 2009 -0700

    Skeletal GoogleModule testing
---
 conduit/modules/GoogleModule/Makefile.am |    2 +-
 test/soup/modules/google.py              |   29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletions(-)

diff --git a/conduit/modules/GoogleModule/Makefile.am b/conduit/modules/GoogleModule/Makefile.am
index a738736..fea2728 100644
--- a/conduit/modules/GoogleModule/Makefile.am
+++ b/conduit/modules/GoogleModule/Makefile.am
@@ -1,7 +1,7 @@
 SUBDIRS = gdata atom
 
 conduit_handlersdir = $(libdir)/conduit/modules/GoogleModule
-conduit_handlers_PYTHON = GoogleModule.py
+conduit_handlers_PYTHON = __init__.py GoogleModule.py
 
 conduit_handlers_DATA = \
 	calendar-config.glade \
diff --git a/conduit/modules/GoogleModule/__init__.py b/conduit/modules/GoogleModule/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/test/soup/modules/google.py b/test/soup/modules/google.py
new file mode 100644
index 0000000..5dade74
--- /dev/null
+++ b/test/soup/modules/google.py
@@ -0,0 +1,29 @@
+
+import soup
+import soup.modules
+
+from soup import Online
+from soup.data.contact import ContactWrapper
+from soup.data.event import EventWrapper
+
+import conduit.modules.GoogleModule.GoogleModule as GoogleModule
+
+class GoogleContacts(soup.modules.ModuleWrapper):
+
+    requires = [Online]
+    klass = GoogleModule.ContactsTwoWay
+    dataclass = ContactWrapper
+
+    def create_dataprovider(self):
+        return self.klass()
+
+
+class GoogleCalendar(soup.modules.ModuleWrapper):
+
+    requires = [Online]
+    klass = GoogleModule.GoogleCalendarTwoWay
+    dataclass = EventWrapper
+
+    def create_dataprovider(self):
+        return self.klass()
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]