File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11"""Test for tmuxp workspacebuilder."""
22import os
3+ import pathlib
34
45import 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 ()
You can’t perform that action at this time.
0 commit comments