Skip to content

Commit 7f015bf

Browse files
committed
chore(test[config]): Remove unused test
1 parent 9701cb3 commit 7f015bf

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

tests/workspace/test_config.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff 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-
7138
def 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)

0 commit comments

Comments
 (0)