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" data_dir = "fakedir"
os.environ['CELIGO_API_KEY'] = '' os.environ['CELIGO_API_KEY'] = ''
with self.assertRaisesRegexp(Exception, with self.assertRaisesRegexp(
'Please pass in api_key.*'): Exception,
'Please pass in api_key.*'):
celigo.BackupCeligo(data_dir) celigo.BackupCeligo(data_dir)
os.environ['CELIGO_API_KEY'] = self.FAKE_API_KEY os.environ['CELIGO_API_KEY'] = self.FAKE_API_KEY
bc = celigo.BackupCeligo(data_dir) bc = celigo.BackupCeligo(data_dir)
@ -43,7 +44,6 @@ class CeligoTest(unittest.TestCase):
bc = celigo.BackupCeligo(data_dir, api_key='fake_passed_in') bc = celigo.BackupCeligo(data_dir, api_key='fake_passed_in')
self.assertEqual(bc.api_key, 'fake_passed_in') self.assertEqual(bc.api_key, 'fake_passed_in')
def test_ensure_directories(self): def test_ensure_directories(self):
""" """
Test that the ensure_directories_exist works properly. 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. # Make sure nothing errors if the directories exist already.
bc.ensure_directories_exist() bc.ensure_directories_exist()
@requests_mock.Mocker() # @requests_mock.Mocker()
def test_fake_requests(self, rqm): # def test_fake_requests(self, rqm):
rqm.get(celigo.DEFAULT_BASE_URL, text='resp') # rqm.get(celigo.DEFAULT_BASE_URL, text='resp')
tempdir = tempfile.mkdtemp('celigo_testing') # tempdir = tempfile.mkdtemp('celigo_testing')
bc = celigo.BackupCeligo(tempdir) # bc = celigo.BackupCeligo(tempdir)