14
14
from .constants import EXAMPLE_PATH
15
15
16
16
if typing .TYPE_CHECKING :
17
- from .fixtures .structures import TestConfigData
17
+ from .fixtures .structures import ConfigTestData
18
18
19
19
20
20
@pytest .fixture
@@ -25,9 +25,9 @@ def config_fixture():
25
25
os.path.expanduser until here.
26
26
"""
27
27
from .fixtures import config as test_config_data
28
- from .fixtures .structures import TestConfigData
28
+ from .fixtures .structures import ConfigTestData
29
29
30
- return TestConfigData (
30
+ return ConfigTestData (
31
31
** {
32
32
k : v
33
33
for k , v in test_config_data .__dict__ .items ()
@@ -52,7 +52,7 @@ def load_config(path: Union[str, pathlib.Path]) -> str:
52
52
)
53
53
54
54
55
- def test_export_json (tmp_path : pathlib .Path , config_fixture : "TestConfigData " ):
55
+ def test_export_json (tmp_path : pathlib .Path , config_fixture : "ConfigTestData " ):
56
56
json_config_file = tmp_path / "config.json"
57
57
58
58
configparser = kaptan .Kaptan ()
@@ -67,7 +67,7 @@ def test_export_json(tmp_path: pathlib.Path, config_fixture: "TestConfigData"):
67
67
assert config_fixture .sampleconfig .sampleconfigdict == new_config_data
68
68
69
69
70
- def test_export_yaml (tmp_path : pathlib .Path , config_fixture : "TestConfigData " ):
70
+ def test_export_yaml (tmp_path : pathlib .Path , config_fixture : "ConfigTestData " ):
71
71
yaml_config_file = tmp_path / "config.yaml"
72
72
73
73
configparser = kaptan .Kaptan ()
@@ -111,13 +111,13 @@ def test_scan_config(tmp_path: pathlib.Path):
111
111
assert len (configs ) == files
112
112
113
113
114
- def test_config_expand1 (config_fixture : "TestConfigData " ):
114
+ def test_config_expand1 (config_fixture : "ConfigTestData " ):
115
115
"""Expand shell commands from string to list."""
116
116
test_config = config .expand (config_fixture .expand1 .before_config )
117
117
assert test_config == config_fixture .expand1 .after_config ()
118
118
119
119
120
- def test_config_expand2 (config_fixture : "TestConfigData " ):
120
+ def test_config_expand2 (config_fixture : "ConfigTestData " ):
121
121
"""Expand shell commands from string to list."""
122
122
unexpanded_dict = load_yaml (config_fixture .expand2 .unexpanded_yaml ())
123
123
expanded_dict = load_yaml (config_fixture .expand2 .expanded_yaml ())
@@ -236,7 +236,7 @@ def test_inheritance_config():
236
236
assert config == inheritance_config_after
237
237
238
238
239
- def test_shell_command_before (config_fixture : "TestConfigData " ):
239
+ def test_shell_command_before (config_fixture : "ConfigTestData " ):
240
240
"""Config inheritance for the nested 'start_command'."""
241
241
test_config = config_fixture .shell_command_before .config_unexpanded
242
242
test_config = config .expand (test_config )
@@ -247,7 +247,7 @@ def test_shell_command_before(config_fixture: "TestConfigData"):
247
247
assert test_config == config_fixture .shell_command_before .config_after ()
248
248
249
249
250
- def test_in_session_scope (config_fixture : "TestConfigData " ):
250
+ def test_in_session_scope (config_fixture : "ConfigTestData " ):
251
251
sconfig = load_yaml (config_fixture .shell_command_before_session .before )
252
252
253
253
config .validate_schema (sconfig )
@@ -258,7 +258,7 @@ def test_in_session_scope(config_fixture: "TestConfigData"):
258
258
)
259
259
260
260
261
- def test_trickle_relative_start_directory (config_fixture : "TestConfigData " ):
261
+ def test_trickle_relative_start_directory (config_fixture : "ConfigTestData " ):
262
262
test_config = config .trickle (config_fixture .trickle .before )
263
263
assert test_config == config_fixture .trickle .expected
264
264
@@ -281,7 +281,7 @@ def test_trickle_window_with_no_pane_config():
281
281
}
282
282
283
283
284
- def test_expands_blank_panes (config_fixture : "TestConfigData " ):
284
+ def test_expands_blank_panes (config_fixture : "ConfigTestData " ):
285
285
"""Expand blank config into full form.
286
286
287
287
Handle ``NoneType`` and 'blank'::
0 commit comments