MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / setUp

Method setUp

unit-tests/test_ssl_verify.py:14–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class TestSslVerify(unittest.TestCase):
14 def setUp(self):
15 self._saved_env = {
16 'VERIFY_SSL': os.environ.get('VERIFY_SSL'),
17 'KEEPER_SSL_CERT_FILE': os.environ.get('KEEPER_SSL_CERT_FILE'),
18 }
19 _reset_ssl_cert_cache()
20 # PAM DAG tests set VERIFY_SSL=false without always restoring it.
21 os.environ['VERIFY_SSL'] = 'TRUE'
22 os.environ.pop('KEEPER_SSL_CERT_FILE', None)
23
24 def tearDown(self):
25 for key, value in self._saved_env.items():

Callers

nothing calls this directly

Calls 2

_reset_ssl_cert_cacheFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected