Skip to content

Commit ddebf6b

Browse files
committed
Fix gateway test that used absolute paths
1 parent ab0f2ed commit ddebf6b

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
@@ -421,7 +421,7 @@ async def test_gateway_session_lifecycle(init_gateway, jp_root_dir, jp_fetch):
421421
# Validate session lifecycle functions; create and delete.
422422

423423
# create
424-
session_id, kernel_id = await create_session(jp_root_dir, jp_fetch, "kspec_foo")
424+
session_id, kernel_id = await create_session(jp_fetch, "kspec_foo")
425425

426426
# ensure kernel still considered running
427427
assert await is_kernel_running(jp_fetch, kernel_id) is True
@@ -567,12 +567,12 @@ async def test_channel_queue_get_msg_when_response_router_had_finished():
567567
#
568568
# Test methods below...
569569
#
570-
async def create_session(root_dir, jp_fetch, kernel_name):
570+
async def create_session(jp_fetch, kernel_name):
571571
"""Creates a session for a kernel. The session is created against the server
572572
which then uses the gateway for kernel management.
573573
"""
574574
with mocked_gateway:
575-
nb_path = root_dir / "testgw.ipynb"
575+
nb_path = "/testgw.ipynb"
576576
body = json.dumps(
577577
{"path": str(nb_path), "type": "notebook", "kernel": {"name": kernel_name}}
578578
)

0 commit comments

Comments
 (0)