Skip to content

Commit db5b67c

Browse files
committed
tests: tmp_dir (py.path.local) -> tmp_path (pathlib.Path)
1 parent d2932df commit db5b67c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_workspacebuilder.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Test for tmuxp workspacebuilder."""
22
import os
3+
import pathlib
34

45
import pytest
56

@@ -422,10 +423,11 @@ def test_blank_pane_count(session):
422423
assert len(window4._panes) == 2
423424

424425

425-
def test_start_directory(session, tmpdir):
426+
def test_start_directory(session, tmp_path: pathlib.Path):
426427
yaml_config = loadfixture("workspacebuilder/start_directory.yaml")
427-
test_dir = str(tmpdir.mkdir("foo bar"))
428-
test_config = yaml_config.format(TMP_DIR=str(tmpdir), TEST_DIR=test_dir)
428+
test_dir = tmp_path / "foo bar"
429+
test_dir.mkdir()
430+
test_config = yaml_config.format(TEST_DIR=test_dir)
429431

430432
sconfig = kaptan.Kaptan(handler="yaml")
431433
sconfig = sconfig.import_config(test_config).get()

0 commit comments

Comments
 (0)