Skip to content

Commit

Permalink
minot comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
omry committed Apr 5, 2021
1 parent 470c7e3 commit 7684476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ def test_select_resolves_interpolation(cfg: Any, key: str, expected: Any) -> Non


class TestSelectFromNestedNode:
# all selects are performed on cfg.a:
@mark.parametrize(
("key", "expected"),
[
# all selects are performed on cfg.a:
# relative keys
(".", inp["a"]),
(".b", inp["a"]["b"]),
Expand All @@ -279,10 +279,10 @@ def test_select_from_nested_node_with_a_relative_key(
assert OmegaConf.select(cfg.a, key, absolute_key=False) == expected
assert OmegaConf.select(cfg.a, key, absolute_key=True) == expected

# all selects are performed on cfg.a:
@mark.parametrize(
("key", "expected"),
[
# all selects are performed on cfg.a:
# absolute keys are relative to the calling node
("", inp["a"]),
("b", inp["a"]["b"]),
Expand All @@ -298,6 +298,7 @@ def test_select_from_nested_node_relative_key_interpretation(
@mark.parametrize(
("key", "expected"),
[
# all selects are performed on cfg.a:
# absolute keys are relative to the config root
("", inp),
("a", inp["a"]),
Expand Down

0 comments on commit 7684476

Please sign in to comment.