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