Beispiel #1
0
 def test_show_env(self):
     '''
     Test for Show Environment used by Oracle Client
     '''
     with patch.object(os, 'environ',
                       return_value={'PATH': 'PATH',
                                     'ORACLE_HOME': 'ORACLE_HOME',
                                     'TNS_ADMIN': 'TNS_ADMIN',
                                     'NLS_LANG': 'NLS_LANG'}):
         self.assertDictEqual(oracle.show_env(), {})
Beispiel #2
0
 def test_show_env(self):
     '''
     Test for Show Environment used by Oracle Client
     '''
     with patch.object(os,
                       'environ',
                       return_value={
                           'PATH': 'PATH',
                           'ORACLE_HOME': 'ORACLE_HOME',
                           'TNS_ADMIN': 'TNS_ADMIN',
                           'NLS_LANG': 'NLS_LANG'
                       }):
         self.assertDictEqual(oracle.show_env(), {})
Beispiel #3
0
 def test_show_env(self):
     """
     Test for Show Environment used by Oracle Client
     """
     with patch.object(
             os,
             "environ",
             return_value={
                 "PATH": "PATH",
                 "ORACLE_HOME": "ORACLE_HOME",
                 "TNS_ADMIN": "TNS_ADMIN",
                 "NLS_LANG": "NLS_LANG",
             },
     ):
         self.assertDictEqual(oracle.show_env(), {})