File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ def test_next_bad(self):
3131 "//host" + self .url_prefix + "tree" ,
3232 "https://google.com" ,
3333 "/absolute/not/base_url" ,
34+ "///jupyter.org" ,
35+ "/\\ some-host" ,
3436 ):
3537 url = self .login (next = bad_next )
3638 self .assertEqual (url , self .url_prefix )
@@ -39,10 +41,14 @@ def test_next_bad(self):
3941 def test_next_ok (self ):
4042 for next_path in (
4143 "tree/" ,
42- "//" + self .url_prefix + "tree " ,
44+ self .base_url () + "has/host " ,
4345 "notebooks/notebook.ipynb" ,
4446 "tree//something" ,
4547 ):
46- expected = self .url_prefix + next_path
48+ if "://" in next_path :
49+ expected = next_path
50+ else :
51+ expected = self .url_prefix + next_path
52+
4753 actual = self .login (next = expected )
4854 self .assertEqual (actual , expected )
You can’t perform that action at this time.
0 commit comments