Skip to content

Commit a2e1bcf

Browse files
committed
FileContentsManager root_dir should derive from tmp_path fixture
1 parent 5737af9 commit a2e1bcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_jupyter/jupyter_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,9 @@ def jp_kernelspecs(jp_data_dir):
254254

255255

256256
@pytest.fixture(params=[True, False])
257-
def jp_contents_manager(request, jp_root_dir):
257+
def jp_contents_manager(request, tmp_path):
258258
"""Returns a FileContentsManager instance based on the use_atomic_writing parameter value."""
259-
return FileContentsManager(root_dir=str(jp_root_dir), use_atomic_writing=request.param)
259+
return FileContentsManager(root_dir=str(tmp_path), use_atomic_writing=request.param)
260260

261261

262262
@pytest.fixture

0 commit comments

Comments
 (0)