hydra: Fix sweeps on Defaults List.

Defaults List overrides (`defaults/foo=1,2`) were not working because of the inclusion of the `/` character.
Fixed it by updating how we construct the `merged_overrides` and added a regression test.
This commit is contained in:
David de la Iglesia Castro
2022-09-21 15:48:19 +02:00
parent 748c015638
commit 122a68398e
2 changed files with 15 additions and 3 deletions
+7
View File
@@ -183,6 +183,13 @@ def test_compose_and_dump(tmp_dir, suffix, overrides, expected):
@pytest.mark.parametrize(
"overrides, expected",
[
(
{"params.yaml": ["defaults/foo=1,2"]},
[
{"params.yaml": ["defaults/foo=1"]},
{"params.yaml": ["defaults/foo=2"]},
],
),
(
{"params.yaml": ["foo=1,2", "bar=3,4"]},
[