mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Merge pull request #3266 from 0mar/reduce_ssl_testing
Test internal_ssl separately
This commit is contained in:
@@ -76,7 +76,9 @@ def ssl_tmpdir(tmpdir_factory):
|
||||
def app(request, io_loop, ssl_tmpdir):
|
||||
"""Mock a jupyterhub app for testing"""
|
||||
mocked_app = None
|
||||
ssl_enabled = getattr(request.module, "ssl_enabled", False)
|
||||
ssl_enabled = getattr(
|
||||
request.module, 'ssl_enabled', os.environ.get('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