Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorFredrik Wendt <fredrik@wendt.se>
Tue, 8 Jun 2010 20:54:48 +0000 (21:54 +0100)
committerFredrik Wendt <fredrik@wendt.se>
Tue, 8 Jun 2010 20:54:48 +0000 (21:54 +0100)
Signed-off-by: Fredrik Wendt <fredrik@wendt.se>

package/test/automatic_tests.py [new file with mode: 0644]
package/test/integration/__init__.py [new file with mode: 0644]
package/test/integration/test_gravatar.py
package/test/integration/test_linkedinapi.py
package/test/integration/test_twitter.py
package/test/unit/__init__.py [new file with mode: 0644]
package/test/unit/test_gravatar.py

diff --git a/package/test/automatic_tests.py b/package/test/automatic_tests.py
new file mode 100644 (file)
index 0000000..54ad88e
--- /dev/null
@@ -0,0 +1,32 @@
+#!/usr/bin/python2.5
+
+import unittest
+
+from unit.test_facebook import TestFacebookService
+from unit.test_gravatar import TestGravatarService
+from unit.test_linkedin import TestLinkedInService
+from unit.test_twitter import TestTwitterService
+
+from integration.test_gravatar import IntegrationTestGravatarService
+from integration.test_linkedinapi import IntegrationTestLinkedInApi
+from integration.test_twitter import IntegrationTestTwitterService
+
+import integration
+
+class AutomaticTestsSuite(unittest.TestSuite):
+
+    def suite():
+        suite = unittest.TestSuite()
+        suite.addTest(unittest.makeSuite(TestFacebookService))
+        suite.addTest(unittest.makeSuite(TestGravatarService))
+        suite.addTest(unittest.makeSuite(TestLinkedInService))
+        suite.addTest(unittest.makeSuite(TestTwitterService))
+        
+        suite.addTest(unittest.makeSuite(IntegrationTestGravatarService))
+        suite.addTest(unittest.makeSuite(IntegrationTestLinkedInApi))
+        suite.addTest(unittest.makeSuite(IntegrationTestTwitterService))
+        
+        
+
+if __name__ == '__main__':
+    unittest.main()
diff --git a/package/test/integration/__init__.py b/package/test/integration/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
index 7d2617e..7a774d3 100644 (file)
@@ -10,7 +10,7 @@ class FakeContact():
     def get_name(self):
         return self.urls[0]
     
-class TestGravatarService(unittest.TestCase):
+class IntegrationTestGravatarService(unittest.TestCase):
     
     def setUp(self):
         self.testee = Service('maemohermes@wendt.se', 'b14ec179822b')
index a713ae4..d2d7887 100644 (file)
@@ -16,7 +16,7 @@ class FakeGConf(dict):
     def set_string(self, key, value):
         self.__setitem__(key, value)
 
-class TestLinkedInApi(unittest.TestCase):
+class IntegrationTestLinkedInApi(unittest.TestCase):
     
     def setUp(self):
         self.gconf = FakeGConf({
index 7f5a8af..cb6f3e0 100644 (file)
@@ -3,7 +3,7 @@ from org.maemo.hermes.engine.names import canonical
 import unittest
 import twitter
 
-class TestTwitterService(unittest.TestCase):
+class IntegrationTestTwitterService(unittest.TestCase):
     """Tests that needs human interaction (such as for authorization)"""
     
     def setUp(self):
diff --git a/package/test/unit/__init__.py b/package/test/unit/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
index eab4873..cd612ff 100644 (file)
@@ -13,7 +13,7 @@ class FakeContact():
 class TestGravatarService(unittest.TestCase):
     
     def setUp(self):
-        self._setUp('maemohermes@wendt.se', 'b14ec179822b')
+        self._setUp('', '')
         
     def test_that_a_person_with_two_addresses_and_one_gravatar_works(self):
         self._fake_server_response({self.missing_address: None,

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment