diff --git a/tests.py b/tests.py index 103758f..540d611 100644 --- a/tests.py +++ b/tests.py @@ -30,8 +30,9 @@ class CeligoTest(unittest.TestCase): """ data_dir = "fakedir" os.environ['CELIGO_API_KEY'] = '' - with self.assertRaisesRegexp(Exception, - 'Please pass in api_key.*'): + with self.assertRaisesRegexp( + Exception, + 'Please pass in api_key.*'): celigo.BackupCeligo(data_dir) os.environ['CELIGO_API_KEY'] = self.FAKE_API_KEY bc = celigo.BackupCeligo(data_dir) @@ -43,7 +44,6 @@ class CeligoTest(unittest.TestCase): bc = celigo.BackupCeligo(data_dir, api_key='fake_passed_in') self.assertEqual(bc.api_key, 'fake_passed_in') - def test_ensure_directories(self): """ Test that the ensure_directories_exist works properly. @@ -73,8 +73,8 @@ class CeligoTest(unittest.TestCase): # Make sure nothing errors if the directories exist already. bc.ensure_directories_exist() - @requests_mock.Mocker() - def test_fake_requests(self, rqm): - rqm.get(celigo.DEFAULT_BASE_URL, text='resp') - tempdir = tempfile.mkdtemp('celigo_testing') - bc = celigo.BackupCeligo(tempdir) + # @requests_mock.Mocker() + # def test_fake_requests(self, rqm): + # rqm.get(celigo.DEFAULT_BASE_URL, text='resp') + # tempdir = tempfile.mkdtemp('celigo_testing') + # bc = celigo.BackupCeligo(tempdir)