def test_resolve_conf_from_environment_variables(self): """ Run the "resolve" method providing env vars and check if all info is loaded. """ test_utils.delete_test_config() test_utils.set_environment_config_vars() conf = gnippy_config.resolve({}) self.assertEqual(conf['url'], test_utils.test_powertrack_url) self.assertEqual(conf['auth'][0], test_utils.test_username) self.assertEqual(conf['auth'][1], test_utils.test_password)
def test_resolve_conf_from_kwargs2(self): """ Run the "resolve" method providing kwargs and check if all info is loaded. """ test_utils.delete_test_config() url = 'http://gnip.url' username = '******' password = '******' conf = gnippy_config.resolve({ 'url': url, 'auth': (username, password) }) self.assertEqual(conf['url'], url) self.assertEqual(conf['auth'][0], username) self.assertEqual(conf['auth'][1], password)
def tearDown(self): """ Remove the test config file. """ test_utils.delete_test_config()
def tearDown(self): """ Delete the test config file at test_config_path """ test_utils.delete_test_config() test_utils.unset_environment_config_vars()
def tearDown(self): test_utils.delete_test_config()
def tearDown(self): """ Delete the test config file at test_config_path """ test_utils.delete_test_config()