2
2
from pathlib import Path
3
3
4
4
import pytest
5
- from tornado . testing import AsyncHTTPTestCase
5
+ from tornado import testing
6
6
7
7
from jupyter_server_proxy .standalone import _default_address_and_port , make_proxy_app
8
8
@@ -57,12 +57,14 @@ def make_app(unix_socket: bool, skip_authentication: bool):
57
57
)
58
58
59
59
60
- class TestStandaloneProxyRedirect (AsyncHTTPTestCase ):
60
+ class TestStandaloneProxyRedirect (testing . AsyncHTTPTestCase ):
61
61
"""
62
62
Ensure requests are proxied to the application. We need to disable authentication here,
63
63
as we do not want to be redirected to the JupyterHub Login.
64
64
"""
65
65
66
+ runTest = None # Required for Tornado 6.1
67
+
66
68
def get_app (self ):
67
69
return make_app (False , True )
68
70
@@ -90,7 +92,9 @@ def test_on_prefix(self):
90
92
@pytest .mark .skipif (
91
93
sys .platform == "win32" , reason = "Unix socket not supported on Windows"
92
94
)
93
- class TestStandaloneProxyWithUnixSocket (AsyncHTTPTestCase ):
95
+ class TestStandaloneProxyWithUnixSocket (testing .AsyncHTTPTestCase ):
96
+ runTest = None # Required for Tornado 6.1
97
+
94
98
def get_app (self ):
95
99
return make_app (True , True )
96
100
@@ -104,11 +108,13 @@ def test_with_unix_socket(self):
104
108
assert "X-Proxycontextpath: /some/prefix/" in body
105
109
106
110
107
- class TestStandaloneProxyLogin (AsyncHTTPTestCase ):
111
+ class TestStandaloneProxyLogin (testing . AsyncHTTPTestCase ):
108
112
"""
109
113
Ensure we redirect to JupyterHub login when authentication is enabled
110
114
"""
111
115
116
+ runTest = None # Required for Tornado 6.1
117
+
112
118
def get_app (self ):
113
119
return make_app (False , False )
114
120
0 commit comments