Pep8 indentation line, and comment out a test that isn't done yet

This commit is contained in:
Tyrel Souza 2016-05-25 10:19:31 -04:00
parent c1cc62b61f
commit 6581d86cac
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5

View File

@ -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)