Pep8 indentation line, and comment out a test that isn't done yet
This commit is contained in:
parent
c1cc62b61f
commit
6581d86cac
14
tests.py
14
tests.py
@ -30,7 +30,8 @@ class CeligoTest(unittest.TestCase):
|
||||
"""
|
||||
data_dir = "fakedir"
|
||||
os.environ['CELIGO_API_KEY'] = ''
|
||||
with self.assertRaisesRegexp(Exception,
|
||||
with self.assertRaisesRegexp(
|
||||
Exception,
|
||||
'Please pass in api_key.*'):
|
||||
celigo.BackupCeligo(data_dir)
|
||||
os.environ['CELIGO_API_KEY'] = self.FAKE_API_KEY
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user