Reduced ssl on for active tests only

This commit is contained in:
Omar Richardson
2020-11-19 12:58:38 +01:00
parent 4862831f71
commit 313f050c42
5 changed files with 10 additions and 8 deletions

View File

@@ -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)))