File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -35,39 +35,6 @@ def test_export_json(
3535 assert config_fixture .sample_workspace .sample_workspace_dict == new_workspace_data
3636
3737
38- #
39- # There's no tests for this
40- #
41- def test_find_workspace_file (tmp_path : pathlib .Path ) -> None :
42- configs = [str (tmp_path / x ) for x in tmp_path .rglob ("*.[json][ini][yaml]" )]
43-
44- garbage_file = tmp_path / "config.psd"
45- garbage_file .write_text ("wat" , encoding = "utf-8" )
46-
47- # for _r, _d, f in os.walk(str(tmp_path)):
48- # configs.extend(
49- # [str(tmp_path / x) for x in f if x.endswith((".json", ".ini", "yaml"))]
50- # )
51-
52- files = 0
53- config_json = tmp_path / "config.json"
54- config_yaml = tmp_path / "config.yaml"
55- config_ini = tmp_path / "config.ini"
56- if config_json .exists ():
57- files += 1
58- assert str (config_json ) in configs
59-
60- if config_yaml .exists ():
61- files += 1
62- assert str (config_yaml ) in configs
63-
64- if config_ini .exists ():
65- files += 1
66- assert str (config_ini ) in configs
67-
68- assert len (configs ) == files
69-
70-
7138def test_workspace_expand1 (config_fixture : "WorkspaceTestData" ) -> None :
7239 """Expand shell commands from string to list."""
7340 test_workspace = loader .expand (config_fixture .expand1 .before_workspace )
You can’t perform that action at this time.
0 commit comments