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):
31
31
"//host" + self .url_prefix + "tree" ,
32
32
"https://google.com" ,
33
33
"/absolute/not/base_url" ,
34
+ "///jupyter.org" ,
35
+ "/\\ some-host" ,
34
36
):
35
37
url = self .login (next = bad_next )
36
38
self .assertEqual (url , self .url_prefix )
@@ -39,10 +41,14 @@ def test_next_bad(self):
39
41
def test_next_ok (self ):
40
42
for next_path in (
41
43
"tree/" ,
42
- "//" + self .url_prefix + "tree " ,
44
+ self .base_url () + "has/host " ,
43
45
"notebooks/notebook.ipynb" ,
44
46
"tree//something" ,
45
47
):
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
+
47
53
actual = self .login (next = expected )
48
54
self .assertEqual (actual , expected )
You can’t perform that action at this time.
0 commit comments