28
28
)
29
29
from tmuxp .workspacebuilder import WorkspaceBuilder
30
30
31
- from .fixtures ._util import FIXTURE_PATH , load_fixture
31
+ from .fixtures ._util import FIXTURE_PATH , read_config_file
32
32
33
33
34
34
def test_creates_config_dir_not_exists (tmp_path : pathlib .Path ):
@@ -861,7 +861,7 @@ def test_help(cli_args, monkeypatch):
861
861
],
862
862
)
863
863
def test_import_teamocil (cli_args , inputs , tmp_path , monkeypatch ):
864
- teamocil_config = load_fixture ("config_teamocil/test4.yaml" )
864
+ teamocil_config = read_config_file ("config_teamocil/test4.yaml" )
865
865
866
866
teamocil_path = tmp_path / ".teamocil"
867
867
teamocil_path .mkdir ()
@@ -900,7 +900,7 @@ def test_import_teamocil(cli_args, inputs, tmp_path, monkeypatch):
900
900
],
901
901
)
902
902
def test_import_tmuxinator (cli_args , inputs , tmp_path , monkeypatch ):
903
- tmuxinator_config = load_fixture ("config_tmuxinator/test3.yaml" )
903
+ tmuxinator_config = read_config_file ("config_tmuxinator/test3.yaml" )
904
904
905
905
tmuxinator_path = tmp_path / ".tmuxinator"
906
906
tmuxinator_path .mkdir ()
@@ -1103,7 +1103,7 @@ def test_ls_cli(monkeypatch: pytest.MonkeyPatch, tmp_path: pathlib.Path):
1103
1103
def test_load_plugins (monkeypatch_plugin_test_packages ):
1104
1104
from tmuxp_test_plugin_bwb .plugin import PluginBeforeWorkspaceBuilder
1105
1105
1106
- plugins_config = load_fixture ("workspacebuilder/plugin_bwb.yaml" )
1106
+ plugins_config = read_config_file ("workspacebuilder/plugin_bwb.yaml" )
1107
1107
1108
1108
sconfig = kaptan .Kaptan (handler = "yaml" )
1109
1109
sconfig = sconfig .import_config (plugins_config ).get ()
@@ -1186,7 +1186,7 @@ def test_plugin_system_before_script(
1186
1186
1187
1187
1188
1188
def test_reattach_plugins (monkeypatch_plugin_test_packages , server ):
1189
- config_plugins = load_fixture ("workspacebuilder/plugin_r.yaml" )
1189
+ config_plugins = read_config_file ("workspacebuilder/plugin_r.yaml" )
1190
1190
1191
1191
sconfig = kaptan .Kaptan (handler = "yaml" )
1192
1192
sconfig = sconfig .import_config (config_plugins ).get ()
@@ -1217,7 +1217,7 @@ def test_load_attached(server, monkeypatch):
1217
1217
1218
1218
monkeypatch .setattr ("libtmux.session.Session.attach_session" , attach_session_mock )
1219
1219
1220
- yaml_config = load_fixture ("workspacebuilder/two_pane.yaml" )
1220
+ yaml_config = read_config_file ("workspacebuilder/two_pane.yaml" )
1221
1221
sconfig = kaptan .Kaptan (handler = "yaml" )
1222
1222
sconfig = sconfig .import_config (yaml_config ).get ()
1223
1223
@@ -1237,7 +1237,7 @@ def test_load_attached_detached(server, monkeypatch):
1237
1237
1238
1238
monkeypatch .setattr ("libtmux.session.Session.attach_session" , attach_session_mock )
1239
1239
1240
- yaml_config = load_fixture ("workspacebuilder/two_pane.yaml" )
1240
+ yaml_config = read_config_file ("workspacebuilder/two_pane.yaml" )
1241
1241
sconfig = kaptan .Kaptan (handler = "yaml" )
1242
1242
sconfig = sconfig .import_config (yaml_config ).get ()
1243
1243
@@ -1257,7 +1257,7 @@ def test_load_attached_within_tmux(server, monkeypatch):
1257
1257
1258
1258
monkeypatch .setattr ("libtmux.session.Session.switch_client" , switch_client_mock )
1259
1259
1260
- yaml_config = load_fixture ("workspacebuilder/two_pane.yaml" )
1260
+ yaml_config = read_config_file ("workspacebuilder/two_pane.yaml" )
1261
1261
sconfig = kaptan .Kaptan (handler = "yaml" )
1262
1262
sconfig = sconfig .import_config (yaml_config ).get ()
1263
1263
@@ -1277,7 +1277,7 @@ def test_load_attached_within_tmux_detached(server, monkeypatch):
1277
1277
1278
1278
monkeypatch .setattr ("libtmux.session.Session.switch_client" , switch_client_mock )
1279
1279
1280
- yaml_config = load_fixture ("workspacebuilder/two_pane.yaml" )
1280
+ yaml_config = read_config_file ("workspacebuilder/two_pane.yaml" )
1281
1281
sconfig = kaptan .Kaptan (handler = "yaml" )
1282
1282
sconfig = sconfig .import_config (yaml_config ).get ()
1283
1283
@@ -1289,7 +1289,7 @@ def test_load_attached_within_tmux_detached(server, monkeypatch):
1289
1289
1290
1290
1291
1291
def test_load_append_windows_to_current_session (server , monkeypatch ):
1292
- yaml_config = load_fixture ("workspacebuilder/two_pane.yaml" )
1292
+ yaml_config = read_config_file ("workspacebuilder/two_pane.yaml" )
1293
1293
sconfig = kaptan .Kaptan (handler = "yaml" )
1294
1294
sconfig = sconfig .import_config (yaml_config ).get ()
1295
1295
0 commit comments