Skip to content

Commit

Permalink
Mark broken test as xfail
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
  • Loading branch information
astrojuanlu committed Feb 12, 2024
1 parent cc28696 commit 74705b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/config/test_omegaconf_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def test_empty_catalog_file(self, tmp_path):
)["catalog"]
assert catalog == {}

@pytest.mark.xfail(reason="Pending fix")
def test_overlapping_patterns(self, tmp_path, mocker):
"""Check that same configuration file is not loaded more than once."""
_write_yaml(
Expand Down Expand Up @@ -437,7 +438,8 @@ def test_overlapping_patterns(self, tmp_path, mocker):

mocked_load = mocker.patch("omegaconf.OmegaConf.load")
expected_path = (tmp_path / "dev" / "user1" / "catalog2.yml").resolve()
assert mocked_load.called_once_with(expected_path)

mocked_load.assert_called_once_with(expected_path)

def test_yaml_parser_error(self, tmp_path):
conf_path = tmp_path / _BASE_ENV
Expand Down

0 comments on commit 74705b8

Please sign in to comment.