Skip to content

Commit 896141b

Browse files
committed
Fix gateway test that used absolute paths
1 parent 8c9e00b commit 896141b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_gateway.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async def test_gateway_session_lifecycle(init_gateway, jp_root_dir, jp_fetch):
294294
# Validate session lifecycle functions; create and delete.
295295

296296
# create
297-
session_id, kernel_id = await create_session(jp_root_dir, jp_fetch, "kspec_foo")
297+
session_id, kernel_id = await create_session(jp_fetch, "kspec_foo")
298298

299299
# ensure kernel still considered running
300300
assert await is_kernel_running(jp_fetch, kernel_id) is True
@@ -440,12 +440,12 @@ async def test_channel_queue_get_msg_when_response_router_had_finished():
440440
#
441441
# Test methods below...
442442
#
443-
async def create_session(root_dir, jp_fetch, kernel_name):
443+
async def create_session(jp_fetch, kernel_name):
444444
"""Creates a session for a kernel. The session is created against the server
445445
which then uses the gateway for kernel management.
446446
"""
447447
with mocked_gateway:
448-
nb_path = root_dir / "testgw.ipynb"
448+
nb_path = "/testgw.ipynb"
449449
body = json.dumps(
450450
{"path": str(nb_path), "type": "notebook", "kernel": {"name": kernel_name}}
451451
)

0 commit comments

Comments
 (0)