From 6581d86cac3c0d62c80ce0ce4ee375bf69948071 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 25 May 2016 10:19:31 -0400 Subject: [PATCH] Pep8 indentation line, and comment out a test that isn't done yet --- tests.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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)