mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 14:33:00 +00:00
Reduced ssl on for active tests only
This commit is contained in:
@@ -74,11 +74,7 @@ def ssl_tmpdir(tmpdir_factory):
|
||||
def app(request, io_loop, ssl_tmpdir):
|
||||
"""Mock a jupyterhub app for testing"""
|
||||
mocked_app = None
|
||||
if 'SSL_ENABLED' in os.environ:
|
||||
ssl_env_var = bool(os.environ['SSL_ENABLED'])
|
||||
else:
|
||||
ssl_env_var = False
|
||||
ssl_enabled = getattr(request.module, "ssl_enabled", ssl_env_var)
|
||||
ssl_enabled = getattr(request.module, "ssl_enabled", False)
|
||||
kwargs = dict()
|
||||
if ssl_enabled:
|
||||
kwargs.update(dict(internal_ssl=True, internal_certs_location=str(ssl_tmpdir)))
|
||||
|
Reference in New Issue
Block a user