コード例 #1
0
ファイル: test_config.py プロジェクト: Evzdrop/gnippy
 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)
コード例 #2
0
ファイル: test_config.py プロジェクト: thongdong7/gnippy
 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)
コード例 #3
0
 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)
コード例 #4
0
ファイル: test_config.py プロジェクト: j-bennet/gnippy
 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)
コード例 #5
0
 def tearDown(self):
     """ Remove the test config file. """
     test_utils.delete_test_config()
コード例 #6
0
ファイル: test_config.py プロジェクト: Evzdrop/gnippy
 def tearDown(self):
     """ Delete the test config file at test_config_path """
     test_utils.delete_test_config()
     test_utils.unset_environment_config_vars()
コード例 #7
0
ファイル: test_config.py プロジェクト: thongdong7/gnippy
 def tearDown(self):
     """ Delete the test config file at test_config_path """
     test_utils.delete_test_config()
     test_utils.unset_environment_config_vars()
コード例 #8
0
ファイル: test_rules.py プロジェクト: Evzdrop/gnippy
 def tearDown(self):
     test_utils.delete_test_config()
コード例 #9
0
 def tearDown(self):
     test_utils.delete_test_config()
コード例 #10
0
ファイル: test_config.py プロジェクト: everilae/gnippy
 def tearDown(self):
     """ Delete the test config file at test_config_path """
     test_utils.delete_test_config()
コード例 #11
0
 def tearDown(self):
     """ Remove the test config file. """
     test_utils.delete_test_config()