Skip to content

Commit

Permalink
Make assertions less restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesters committed Sep 16, 2024
1 parent 6d37cb3 commit e5aaecd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,13 @@ def test_conda_standalone_config(restrict_search_path, tmp_path, monkeypatch):
conda_configs["recipe"] = config
elif Path(filepath).exists():
conda_configs[filepath] = config
assert expected_configs == conda_configs
if restrict_search_path:
assert expected_configs == conda_configs
else:
# If the search path is restricted, there may be other .condarc
# files in the final config, so be less strict with assertions
for filepath, config in expected_configs.items():
assert conda_configs.get(filepath) == config


def test_extract_conda_pkgs(tmp_path: Path):
Expand Down

0 comments on commit e5aaecd

Please sign in to comment.