Fixing the broken test

This commit is contained in:
Mitsuo Takaki
2019-02-24 22:01:54 -08:00
parent f1e69bf39b
commit eae51967c4

View File

@@ -37,7 +37,7 @@ class ConfigurationTest(unittest.TestCase):
sys.modules['requests'].HTTPError = HTTPError sys.modules['requests'].HTTPError = HTTPError
def test_init(self): def test_init(self):
self.assertEqual(len(self.configuration.data), 4, 'Number of root elements in config.yml is incorrect') self.assertEqual(len(self.configuration.data), 3, 'Number of root elements in config.yml is incorrect')
self.assertEquals(len(self.configuration.expectations), 3, 'Number of expectations read from file is incorrect') self.assertEquals(len(self.configuration.expectations), 3, 'Number of expectations read from file is incorrect')
self.assertDictEqual(self.configuration.headers, {'X-Cachet-Token': 'token2'}, 'Header was not set correctly') self.assertDictEqual(self.configuration.headers, {'X-Cachet-Token': 'token2'}, 'Header was not set correctly')
self.assertEquals(self.configuration.api_url, 'https://demo.cachethq.io/api/v1', self.assertEquals(self.configuration.api_url, 'https://demo.cachethq.io/api/v1',