From 4a793decce57302d09df2120b34d885f061818e1 Mon Sep 17 00:00:00 2001 From: erick Date: Sun, 15 Nov 2009 04:35:00 +0000 Subject: Removed @catch_unimplemented annotation for storetests now that the store is implemented --- (limited to 'tests') diff --git a/tests/storetests.py b/tests/storetests.py index 0c36973..3f1b73c 100644 --- a/tests/storetests.py +++ b/tests/storetests.py @@ -31,13 +31,11 @@ class StoreProxyTest(unittest.TestCase): def tearDown(self): pass - @catch_unimplemented def test_get_categories(self): categories = self.store.get_categories() assert isinstance(categories, list), "categories should be a list" - @catch_unimplemented def test_get_tutorials(self): self.store.get_tutorials() @@ -46,17 +44,14 @@ class StoreProxyTest(unittest.TestCase): assert isinstance(version_dict, dict) - @catch_unimplemented def test_download_tutorial(self): tutorial = self.store.download_tutorial(g_other_id) assert tutorial is not None - @catch_unimplemented def test_login(self): assert self.store.login("benoit.tremblay1@gmail.com", "tutorius12") - @catch_unimplemented def test_register_new_user(self): random_num = str(random.randint(0, 999999999)) user_info = { @@ -69,29 +64,24 @@ class StoreProxyTest(unittest.TestCase): class StoreProxyLoginTest(unittest.TestCase): - @catch_unimplemented def setUp(self): self.store = StoreProxy("http://bobthebuilder.mine.nu/tutorius/en-US/tutorius") self.store.login("nobody@mozilla.org", "tutorius12") - @catch_unimplemented def tearDown(self): session_id = self.store.get_session_id() if session_id is not None: self.store.close_session() - @catch_unimplemented def test_get_session_id(self): session_id = self.store.get_session_id() assert session_id is not None - @catch_unimplemented def test_rate(self): assert self.store.rate(5, g_tutorial_id) - @catch_unimplemented def test_publish(self): # TODO : We need to send in a real tutorial loaded from # the Vault @@ -108,7 +98,6 @@ class StoreProxyLoginTest(unittest.TestCase): } assert self.store.publish('This should be a real tutorial...', tutorial_info) != -1 - @catch_unimplemented def test_unpublish(self): assert self.store.unpublish(g_tutorial_id) @@ -118,7 +107,6 @@ class StoreProxyLoginTest(unittest.TestCase): def test_republish(self): assert self.store.publish(None, None, g_tutorial_id) - @catch_unimplemented def test_update_published_tutorial(self): # TODO : Run these tests with files from the Vault #self.store.publish([g_tutorial_id, 'Fake tutorial']) -- cgit v0.9.1