Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorAndrew Flegg <andrew@bleb.org>
Thu, 30 Dec 2010 16:07:51 +0000 (16:07 +0000)
committerAndrew Flegg <andrew@bleb.org>
Sun, 2 Jan 2011 19:53:46 +0000 (19:53 +0000)
package/test/integration/test_linkedinapi.py
package/test/integration/test_twitter.py

index 2e38d9f..1928ce7 100644 (file)
@@ -20,8 +20,8 @@ class IntegrationTestLinkedInApi(unittest.TestCase):
     
     def setUp(self):
         self.gconf = FakeGConf({
-                LinkedInApi.GCONF_API_KEY:'1et4G-VtmtqNfY7gF8PHtxMOf0KNWl9ericlTEtdKJeoA4ubk4wEQwf8lSL8AnYE',
-                LinkedInApi.GCONF_API_SECRET:'uk--OtmWcxER-Yh6Py5p0VeLPNlDJSMaXj1xfHILoFzrK7fM9eepNo5RbwGdkRo_'})
+                '/apps/maemo/hermes/linkedin_key':'1et4G-VtmtqNfY7gF8PHtxMOf0KNWl9ericlTEtdKJeoA4ubk4wEQwf8lSL8AnYE',
+                '/apps/maemo/hermes/linkedin_secret':'uk--OtmWcxER-Yh6Py5p0VeLPNlDJSMaXj1xfHILoFzrK7fM9eepNo5RbwGdkRo_'})
         self.testee = LinkedInApi(self.gconf)
 
 
index 0872abb..b8c2623 100644 (file)
@@ -1,29 +1,30 @@
 from org.maemo.hermes.engine.twitter.service import Service
 from org.maemo.hermes.engine.names import canonical
+from org.maemo.hermes.engine.twitter.api import TwitterApi
 import unittest
-import twitter
 
 class IntegrationTestTwitterService(unittest.TestCase):
     """Tests that needs human interaction (such as for authorization)"""
     
-    def setUp(self):
-        self.api = twitter.Api(username="maemohermes", password="Eha8ohr7Cu")
-        self.testee = Service('twitter', self.api)
-    
-    
-    def test_main_flow(self):
-        self._exercise_service([])
-        
-        assert len(self.testee.get_unmatched_friends()) > 0
-        assert len(self.testee.get_contacts_with_match()) == 0
-        
-
-    def _exercise_service(self, contacts):
-        for contact in contacts:
-            self.testee.pre_process_contact(contact)
-        self.testee.process_friends()
-        for contact in contacts:
-            self.testee.process_contact(contact)
+    pass
+#    def setUp(self):
+#        self.api = TwitterApi()
+#        self.testee = Service('twitter', self.api)
+#    
+#    
+#    def test_main_flow(self):
+#        self._exercise_service([])
+#        
+#        assert len(self.testee.get_unmatched_friends()) > 0
+#        assert len(self.testee.get_contacts_with_match()) == 0
+#        
+#
+#    def _exercise_service(self, contacts):
+#        for contact in contacts:
+#            self.testee.pre_process_contact(contact)
+#        self.testee.process_friends()
+#        for contact in contacts:
+#            self.testee.process_contact(contact)
     
 if __name__ == '__main__':
     unittest.main()

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment