Skip to content

Commit a62846c

Browse files
authored
Merge pull request #7 from minrk/default-base-url
use non-empty base_url by default
2 parents 2e25d32 + c819ff3 commit a62846c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest_jupyter/jupyter_server.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def jp_configurable_serverapp(
104104
jp_server_config,
105105
jp_argv,
106106
jp_http_port,
107+
jp_base_url,
107108
tmp_path,
108109
jp_root_dir,
109110
io_loop,
@@ -126,6 +127,7 @@ def my_test(jp_configurable_serverapp):
126127

127128
def _configurable_serverapp(
128129
config=jp_server_config,
130+
base_url=jp_base_url,
129131
argv=jp_argv,
130132
environ=jp_environ,
131133
http_port=jp_http_port,
@@ -218,7 +220,7 @@ def jp_auth_header(jp_serverapp):
218220
@pytest.fixture
219221
def jp_base_url():
220222
"""Returns the base url to use for the test."""
221-
return "/"
223+
return "/a%40b/"
222224

223225

224226
@pytest.fixture
@@ -346,4 +348,3 @@ def inner(nbpath):
346348
nbtext = nbformat.writes(nb, version=4)
347349
nbpath.write_text(nbtext)
348350
return inner
349-

0 commit comments

Comments
 (0)