From 2b8f56af84d8f3fa7db0822df59bc293b6857bfe Mon Sep 17 00:00:00 2001 From: richard Date: Sat, 18 May 2013 02:12:46 +0100 Subject: [PATCH] removed pre test func --- tests/unit-tests.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/unit-tests.py b/tests/unit-tests.py index 900cc29..a2ed9bf 100644 --- a/tests/unit-tests.py +++ b/tests/unit-tests.py @@ -24,15 +24,6 @@ TEST_FILE = os.path.basename(__file__) TEST_FOLDER = 'mega.py_testfolder_{0}'.format(random.random()) -def pre_test(): - global FIND_RESP - try: - m.upload(TEST_FILE) - return True - except: - raise ValueError('Pre-test functions failed!') - - class TestMega(unittest.TestCase): def test_mega(self): @@ -112,5 +103,4 @@ class TestMega(unittest.TestCase): if __name__ == '__main__': - if pre_test(): - unittest.main() + unittest.main()