28
28
)
29
29
from tmuxp .workspacebuilder import WorkspaceBuilder
30
30
31
- from .fixtures ._util import curjoin , loadfixture
31
+ from .fixtures ._util import FIXTURE_PATH , loadfixture
32
32
33
33
34
34
def test_creates_config_dir_not_exists (tmp_path : pathlib .Path ):
@@ -305,7 +305,7 @@ def test_load_workspace(server, monkeypatch):
305
305
# a tmux session by the developer himself, delete the TMUX variable
306
306
# temporarily.
307
307
monkeypatch .delenv ("TMUX" , raising = False )
308
- session_file = curjoin ( "workspacebuilder/ two_pane.yaml" )
308
+ session_file = FIXTURE_PATH / "workspacebuilder" / " two_pane.yaml"
309
309
310
310
# open it detached
311
311
session = load_workspace (
@@ -321,7 +321,7 @@ def test_load_workspace_named_session(server, monkeypatch):
321
321
# a tmux session by the developer himself, delete the TMUX variable
322
322
# temporarily.
323
323
monkeypatch .delenv ("TMUX" , raising = False )
324
- session_file = curjoin ( "workspacebuilder/ two_pane.yaml" )
324
+ session_file = FIXTURE_PATH / "workspacebuilder" / " two_pane.yaml"
325
325
326
326
# open it detached
327
327
session = load_workspace (
@@ -342,7 +342,7 @@ def test_load_workspace_name_match_regression_252(
342
342
tmp_path : pathlib .Path , server , monkeypatch
343
343
):
344
344
monkeypatch .delenv ("TMUX" , raising = False )
345
- session_file = curjoin ( "workspacebuilder/ two_pane.yaml" )
345
+ session_file = FIXTURE_PATH / "workspacebuilder" / " two_pane.yaml"
346
346
347
347
# open it detached
348
348
session = load_workspace (
@@ -407,8 +407,8 @@ def test_load_symlinked_workspace(server, tmp_path, monkeypatch):
407
407
def test_regression_00132_session_name_with_dots (
408
408
tmp_path : pathlib .Path , server , session
409
409
):
410
- yaml_config = curjoin ( "workspacebuilder/ regression_00132_dots.yaml" )
411
- cli_args = [yaml_config ]
410
+ yaml_config = FIXTURE_PATH / "workspacebuilder" / " regression_00132_dots.yaml"
411
+ cli_args = [str ( yaml_config ) ]
412
412
inputs = []
413
413
runner = CliRunner ()
414
414
result = runner .invoke (
@@ -1181,7 +1181,7 @@ def test_plugin_system_before_script(
1181
1181
# a tmux session by the developer himself, delete the TMUX variable
1182
1182
# temporarily.
1183
1183
monkeypatch .delenv ("TMUX" , raising = False )
1184
- session_file = curjoin ( "workspacebuilder/ plugin_bs.yaml" )
1184
+ session_file = FIXTURE_PATH / "workspacebuilder" / " plugin_bs.yaml"
1185
1185
1186
1186
# open it detached
1187
1187
session = load_workspace (
0 commit comments